Hi,
My code in php:
$query = "update $BOOKS set UserID = '$userid' where ID = $bid";
$result = mysql_query($query,$DB) or die ("Error in executing $query. Reason:". mysql_error($DB));
If I echo the query I can execute via phpmyadmin, but I cannot execute in the php code.
Please tell me how to solve this.
Thanks in advance,
Beck
My code in php:
$query = "update $BOOKS set UserID = '$userid' where ID = $bid";
$result = mysql_query($query,$DB) or die ("Error in executing $query. Reason:". mysql_error($DB));
If I echo the query I can execute via phpmyadmin, but I cannot execute in the php code.
Please tell me how to solve this.
Thanks in advance,
Beck