$SQL="INSERT INTO first_name VALUES (fname) SELECT first_name FROM people WHERE fname = '$fname'";
I'm trying to insert the value 'fname' which is $fname (variable defined by a user) into the column 'first_name'
It's not adding anything but not displaying any errors. Syntax problem?
first_name?mysql_erroris the function for returning errors in your query. If I have to read one more post about this I am going to scream.$fnameinto the query. Since you're using it, I'm assuming that you're using the mysql_* family of functions, which is BAD. The question that I just linked also has resources on alternatives.