justAnoob Posted May 12, 2009 Share Posted May 12, 2009 <?php $sql = "INSERT INTO abcxyz(imgpath2)VALUES('$imgpath')WHERE id = '$id' and user_id = '$user_id'"; ?> How would I get an echo for the mysql error if the insert was working?.. I know how to do it,, but I can't get the syntax right. 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.