Hello,
I am using PHP to create forms and then am entering the user input into
a MySQL DB
In the first query I am trying to select the values that the user
entered on the form
THIS DOES NOT WERK.... gives error unable to execute query
$sql = "INSERT INTO `guest` (`title`, `first_name`, `last_name`,
`login`, `password`, `passport_number`, `e_mail`, `question`, `answer`,
`industry`, `job_title`, `state`, `city`, `company`, `last_visit`)
VALUES ('\$select\', \'$f_name\', \'$l_name\', \'$login\',
\'$password\', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NOW());";
WHEN I TRY TO HARD CODE THE VALUES INTO THE MYSQL QUERY, IT WERKS FINE
// $sql = 'INSERT INTO `guest` (`title`, `first_name`, `last_name`,
`login`, `password`, `passport_number`, `e_mail`, `question`, `answer`,
`industry`, `job_title`, `state`, `city`, `company`, `last_visit`)
VALUES (\'gh\', \'ghdfghhgj\', \'hgddj\', \'ggfgfg\', \'hfgdj\', NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NOW());';
Can somebody please tell me where I am going wrong..??
Many thanks
Pushpinder Singh Garcha
_________________________________
Web Architect
T. Falcon Napier and Associates, Inc.
- RE: [PHP] PHP and MySQL Craig Vincent
- RE: [PHP] PHP and MySQL Craig Vincent
- Re: [PHP] PHP and MySQL Miguel Cruz
- [PHP] PHP and MySQL City Colleges of Chicago - Mannheim
- Re: [PHP] PHP and MySQL Dan Hardiker
- RE: [PHP] PHP and MySQL Craig Vincent
- [PHP] PHP and MySQL Erich Kolb
- [PHP] Re: PHP and MySQL Monty
- Re: [PHP] PHP and MySQL Jason Wong
- RE: [PHP] PHP and MySQL Shane
- Re: [PHP] PHP and MySQL Pushpinder Singh Garcha
- Re: [PHP] PHP and MySQL Stephen
- Re: [PHP] PHP and MySQL Kevin Stone
- Re: [PHP] PHP and MySQL Jason Wong
- Re: [PHP] PHP and MySQL Pushpinder Singh Garcha
- Re: [PHP] PHP and MySQL BABA Yoshihiko
- Re: [PHP] PHP and MySQL Jason Wong
- [PHP] php and mysql Tyler Durdin
- Re: [PHP] php and mysql David Otton
- [PHP] sessions Joseph Bannon
- Re: [PHP] sessions Chris Shiflett