dudejma Posted August 1, 2011 Share Posted August 1, 2011 $sql3 = "DELETE FROM temp_pass WHERE pilotID='$pilotid'"; $result3 = mysql_query($sql3) or die("An error has occured. Please contact the webmaster with the following error: " . mysql_error()); What's wrong with the above code? I have a long piece of code, but I've separated every piece and all of the other pieces work BUT this one. I've been at it for hours on end. Thanks guys. Link to comment https://forums.phpfreaks.com/topic/243529-delete/ Share on other sites More sharing options...
The Little Guy Posted August 1, 2011 Share Posted August 1, 2011 What is the error? Link to comment https://forums.phpfreaks.com/topic/243529-delete/#findComment-1250472 Share on other sites More sharing options...
dudejma Posted August 1, 2011 Author Share Posted August 1, 2011 That's the problem, there is no error. It just doesn't do what it's supposed to. Link to comment https://forums.phpfreaks.com/topic/243529-delete/#findComment-1250475 Share on other sites More sharing options...
The Little Guy Posted August 1, 2011 Share Posted August 1, 2011 have you done: echo $sql3; Link to comment https://forums.phpfreaks.com/topic/243529-delete/#findComment-1250477 Share on other sites More sharing options...
dudejma Posted August 1, 2011 Author Share Posted August 1, 2011 Thanks Little Guy! That helped me out. Link to comment https://forums.phpfreaks.com/topic/243529-delete/#findComment-1250481 Share on other sites More sharing options...
fenway Posted August 2, 2011 Share Posted August 2, 2011 Thanks Little Guy! That helped me out. How? What was the error? Link to comment https://forums.phpfreaks.com/topic/243529-delete/#findComment-1250658 Share on other sites More sharing options...
AyKay47 Posted August 2, 2011 Share Posted August 2, 2011 $pilotid was probably empty or something.. Link to comment https://forums.phpfreaks.com/topic/243529-delete/#findComment-1250742 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.