[Solved] Variable not parsing or something...
Posted: Fri Mar 26, 2004 2:47 pm
This is easy... I have done this hundreds of times, but for some reason this isn't working...
With the error:
InsertUserInfo Unknown column 'Steve' in 'field list'
('Steve' is the name that I entered.)
$name is a $_GET['name'] var. If I take the $name part out and make that part of the string just a word, like this:
.. it works.
Any ideas?
Code: Select all
$userInfo = 'INSERT INTO `'.$location.'` ( `name` ) VALUES (`'.$name.'`)';InsertUserInfo Unknown column 'Steve' in 'field list'
('Steve' is the name that I entered.)
$name is a $_GET['name'] var. If I take the $name part out and make that part of the string just a word, like this:
Code: Select all
$userInfo = 'INSERT INTO `'.$location.'` ( `name` ) VALUES (`Steve`)';Any ideas?