Re: MySQL Results Not Being Commited To Database

From: Date: Sat, 03 Jul 2004 19:03:51 +0000
Subject: Re: MySQL Results Not Being Commited To Database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189638@lists.php.net to get a copy of this message
Harlequin wrote:
sql == "INSERT INTO RegisteredMembers (TXT_UserID,TXT_UserPassword,TXT_Comments,TXT_FurtherComments) VALUES('".$NewUserID."','".$NewUserPassword."','".$NewUserComments."','".$NewUserFurtherComments."')";
This should be $sql = " ... " and then you need to run the query with $result = mysql_query($sql) or die("Could not execute $sql. Reason: " . mysql_error()); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#189638) next »