Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2006, 02:01 PM
Registered User
 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter14, checkout2.php-Msql error

I get the following error when running the E-Commerce example from code downloaded from Wrox site:

Warning: Wrong parameter count for mysql_query() in C:\Apache Group\Apache2\htdocs\checkout2.php on line 244.

Line 244 is the "or die" line in the following command

$results = mysql_query($query)
        or die (mysql_query());

 
Old May 30th, 2006, 05:10 PM
Registered User
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Correct me if I'm wrong...but i think it needs to be

"or die (mysql_error());" not "or die (mysql_query());"

Hope that helps

Mike






Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql error in checkout2.php in E-Commerce example JECovill BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 May 29th, 2006 09:44 PM
connecting to a msql database using xslt dzisaacs XSLT 2 September 6th, 2005 10:51 AM
Chapter14 - P421 Zaff BOOK: Access 2003 VBA Programmer's Reference 2 December 1st, 2004 10:58 PM
Error: movie.php & commit.php on p182-186, ch6 willburke BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 October 12th, 2004 02:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.