HI
I need a script to delete a row from a database. I am not sure of the syntax of the statement due to the format of the database.
This is an example row of the table that has four columns:
ID Column:
03h0l182i54d74w7x112x1c7887006kv-1458gjyg5olfslv77bb750khi4vi61gw
CartID
gmt5636boc429180q8h4zv59b1vb28po
Cartdata
a:30:{s:6:"randid";s:12:"29c090334ltk";}
Time
1350205041
I know the value of s:12 in variable $randid.
what I have been trying is variations of this
Code:
mysql_query("DELETE FROM ecom_cart WHERE '%s:6:\'randid\'`,\'s:12:\'".$randid."\'%'
")
but just get errors.
Any help would be appreciated.
Thanks
Rob