Forum Moderators: coopster
PHP Code.
------------------------
$query =("UPDATE rmatable SET RMACLOSED = '$RMACLOSED' , PASSEDTO = '$PASSEDTO', STATUS = '$STATUS', DATERETURNED = '$DATERETURNED', TRACKNO = '$TRACKNO' WHERE RMA = '$row_ID' AND SERIALNO IN(".implode(",",$_POST['id']).")");
Echo of Query
------------------------
UPDATE rmatable SET RMACLOSED = 'YES' , PASSEDTO = 'Chris McKee', STATUS = 'SHIPPED', DATERETURNED = '2008-09-19', TRACKNO = '' WHERE RMA = 'RMAD122' AND SERIALNO IN(6025400010,6025400111)
The above bits work until I have a SERIALNO like this 25408070003A in the " AND SERIALNO IN(6025400010,25408070003A) " bit of the code, This is the error message I get.
" Unknown column '25408070003A' in 'where clause' "
It looks like any SERIALNO with a letter at the end wont work, Is there anyway this can be fixed?
Thanks
Rob.