in reply to dbi: moving big data among databases (prepared statements)
In the statement
$query1 = "SELECT * from database1.table WHERE id = '$id'
the quoted string is not terminated and the statement is not complete.
How did this compile in the first place? Perhaps see Short, Self-Contained, Correct Example for another approach to preparing code for discussion.
Give a man a fish: <%-{-{-{-<
|
|---|