Re: Newbie help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux