$SQL="SELECT first_name FROM people WHERE fname = '$fname' INSERT INTO (first_name) VALUES (fname)";
Anything wrong with this? Trying to insert a value from a user defined variable into a mysql table
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\wamp\www\Pxxxx\process.php on line 44
This is the error
$fname is a user defined variable first_name is the column I'm trying to insert it into and it's in a table called people
;SELECT? Do you mean:INSERT INTO (first_name) SELECT first_name FROM people WHERE fname = '$fname'?mysql_querycall (or whatever he's using).