RE: [PHP-DB] variable names
| From: | USA) | Date: | Tue, 01 Oct 2002 15:03:26 +0000 |
| Subject: | RE: [PHP-DB] variable names | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-22127@lists.php.net to get a copy of this message | ||
Sounds like register_globals is off in php.ini . :-)
<>< Ryan
-----Original Message-----
From: Brendan Flynn [mailto:bmapc@utvinternet.com]
Sent: Monday, September 30, 2002 12:45 PM
To: php-db@lists.php.net
Subject: [PHP-DB] variable names
Hello,
I have installed PHP4 with Apache support - the phpinfo works fine and I am
able to write PHP code to display a timetable from a MYSQL database. However
I cannot add or use the command insert when trying to add information.
I have done a few tests and when I run the same scripts with the values
already inputted the database is updated.
i.e.. instead of asking the user for the values, I inset them as follows
INSERT values $DNTable VALUES ('', 'crap', '555-555'); - and this
works fine
and database is auto-incrementated. NOW if I replace 'crap' with $name or
$phone the database is updated BUT the values are blank.
ie. database
id name phone
1
2
3
Now I wrote a basic script that just displays the values inputted by a user
and they appear blank as well?
Any ideas?
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php