sungpeng Posted March 30, 2009 Share Posted March 30, 2009 $delete=mysql_query("DELETE FROM listings.img0 WHERE rid = '$rid'"); hi check how to delete one field "img0" from index number "rid". Above code not working Thank Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted March 30, 2009 Share Posted March 30, 2009 You don't delete fields/columns in SQL, you can only delete rows. You can, however, set fields to a null value $update=mysql_query("UPDATE listings SET img0 = NULL WHERE rid = '$rid'"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.