$img1 = $_GET['img1'];
$img2 = $_GET['img2'];
$query = $mysql_query("SELECT * FROM asd WHERE ID=$img1");
$row1 = mysql_fetch_array($query);
$query = $mysql_query("SELECT * FROM asd WHERE ID=$img2");
$row2 = mysql_fetch_array($query);
--
Was having trouble with this, forgot to exclude $
The problem is here:
$query = $mysql_query("SELECT * FROM asd WHERE ID=$img1");
and here:
$query = $mysql_query("SELECT * FROM asd WHERE ID=$img2");
Remove the '$' before mysql_query(...);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With