Ell20 Posted October 24, 2007 Share Posted October 24, 2007 Hey, I am attempting to create a link which when clicked deletes that particular news item. if ($_GET['news_id']){ mysql_query("DELETE FROM news WHERE news_id='$newsid'") or die(mysql_error()); echo '<center><h3>Message Deleted!</h3></center>'; } It is successfully deleting the record from the display and the database but the message is not being printed on the screen? Cheers Link to comment https://forums.phpfreaks.com/topic/74586-solved-echo-not-being-run/ Share on other sites More sharing options...
adam291086 Posted October 24, 2007 Share Posted October 24, 2007 too slow Link to comment https://forums.phpfreaks.com/topic/74586-solved-echo-not-being-run/#findComment-376937 Share on other sites More sharing options...
amsgwp Posted October 24, 2007 Share Posted October 24, 2007 What is the solution? Link to comment https://forums.phpfreaks.com/topic/74586-solved-echo-not-being-run/#findComment-376941 Share on other sites More sharing options...
Ell20 Posted October 24, 2007 Author Share Posted October 24, 2007 There isnt one, the code works, just the message was being displayed in an unexpected place so I didnt see it! Link to comment https://forums.phpfreaks.com/topic/74586-solved-echo-not-being-run/#findComment-377022 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.