i wanna select a single cell (not full row) from one MySQL table and insert the value into another table. The datatype of the (value being extracted) and the (column of insertion) are the same.
well i guess the problem is that when i use the command
$res = select * from table where column = 'value';
then AN ENTIRE RECORD is returned into $res.
Then, when i try to assign the value of $res into the other table, i am trying to assign a RECORD into a COLUMN, which is probably causing he error....
I have referredd to the links ou indicated, and this is the code i have come up with. But this doesnt seem to work either. I guess the error is based on the usage of ("") , ('') and (``) at different points in the query.
Before while have this. print mysql_num_rows($r1); I believe, your query doesn't return any records.
The above print statement, will print the number of records found for the select query.
Before while have this. print mysql_num_rows($r1); I believe, your query doesn't return any records.
The above print statement, will print the number of records found for the select query.
Hey nav33n.
You were right. IO tried that command an it showed 0, indicating that no rows were returned by SQL.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.