dezkit Posted January 23, 2009 Share Posted January 23, 2009 I have found the problem. Quote Link to comment https://forums.phpfreaks.com/topic/142163-solved-data-deletes-itself-instead-of-updating/ Share on other sites More sharing options...
Maq Posted January 23, 2009 Share Posted January 23, 2009 Instead of using this: $result=mysql_query("UPDATE events SET name='$name',date='$date',location='$location',description='$description',image='$image',time='$time',detail='$detail',site='$site',phone='$phone',image='$image' WHERE id='$id'"); Why don't you put the sql statement in a string, echo it out and use mysql_errors() $sql = "UPDATE events SET name='$name',date='$date',location='$location',description='$description',image='$image',time='$time',detail='$detail',site='$site',phone='$phone',image='$image' WHERE id='$id'"; echo $sql; myql_query($sql) or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/142163-solved-data-deletes-itself-instead-of-updating/#findComment-744703 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.