Mucking about with Variables
| From: | callen | Date: | Thu, 03 Aug 2000 16:31:51 +0000 |
| Subject: | Mucking about with Variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-9976@lists.php.net to get a copy of this message | ||
Greetings:
I am mucking around here a bit, and not geting anywhere, here's the
situation
$query= "UPDATE ticketing SET $var = $var where ticket_number =
'$ticket_id' ";
This statemnet gets passed fine into mysql with no errors, but
unfortuantely no data is inserted
into the DB. When I quote $var, I get syntax errors, so....
Whats wrong with this statement??
--
Christopher C.M. Allen
http://design.driver8.org/
Email: callen@driver8.org