chump2877
06-26-2005, 11:51 AM
For this line of code:
$queryW = "UPDATE customer_dbase SET " . $column . "=" . $update . " WHERE index_no LIKE '%" . $ref_no . "%'";
$resultW = mysql_query($queryW);
{
die("<br>" . mysql_errno() . ": " . mysql_error() . "<br>");
}
I get the following SQL error:
1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE index_no LIKE '%3%'' at line 1
anyone see the problem? thanks.
$queryW = "UPDATE customer_dbase SET " . $column . "=" . $update . " WHERE index_no LIKE '%" . $ref_no . "%'";
$resultW = mysql_query($queryW);
{
die("<br>" . mysql_errno() . ": " . mysql_error() . "<br>");
}
I get the following SQL error:
1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE index_no LIKE '%3%'' at line 1
anyone see the problem? thanks.