Re[2]: [PHP-DB] creating errors
| From: | Julie Meloni | Date: | Tue, 28 May 2002 15:56:55 +0000 |
| Subject: | Re[2]: [PHP-DB] creating errors | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19477@lists.php.net to get a copy of this message | ||
EG> try just:
EG> $sql = "INSERT INTO $table_name (f_name,l_name,email_addy,un,pw) VALUES
EG> ('$f_name','$l_name','$email_addy','$un',
EG> 'PASSWORD('$pw')'";
Make that ... password('$pw'), without the single quotes around the
password() function. Otherwise, it will print it literally.
- Julie
--> Julie Meloni
--> julie@thickbook.com
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20