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 Quote Link to comment Share on other sites More sharing options...
adam291086 Posted October 24, 2007 Share Posted October 24, 2007 too slow Quote Link to comment Share on other sites More sharing options...
amsgwp Posted October 24, 2007 Share Posted October 24, 2007 What is the solution? Quote Link to comment 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! 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.