Re: Newbie help

From: Date: Wed, 07 May 2003 05:39:03 +0000
Subject: Re: Newbie help
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-27567@lists.php.net to get a copy of this message
See below.
//Assign contents of form to variables #$userid = $_POST['userid']; #$passwd = $_POST['passwd'];
Uncomment these lines - that's why your variables are blank.
$sql = "INSERT INTO users (userid, passwd) VALUES (userid = 'userid', passwd = 'passwd')";
You can also write this as follows:
$sql = "INSERT INTO users (userid, passwd) VALUES ('userid', 'passwd')";
But I don't know if the way you have it should work or would cause an error. HTH, -Lisi

« previous php.db (#27567) next »