Question : delete row from database

I am trying to delete a row from my database with the below code:

mysql_query("DELETE FROM bespoke_pricelist WHERE id= " . $row_rs_media['id']);

but it's not working. What am I doing wrong?

Answer : delete row from database

please "echo" the value of the $sql and the error:

1:
2:
3:
$sql = "DELETE FROM bespoke_pricelist WHERE id= " . $row_rs_media['id'];
echo $sql;
mysql_query($sql) or die(mysql_error());
Random Solutions  
 
programming4us programming4us