pouncer Posted January 24, 2007 Share Posted January 24, 2007 [code]<?php if (isset($_POST['Submit_x'])) { $message_id = $_POST['message_id']; // here i need to remove the record from table private_messages where the message_id=$message_id }?>[/code]can someone please show me the correct php sql syntax? Quote Link to comment Share on other sites More sharing options...
utexas_pjm Posted January 24, 2007 Share Posted January 24, 2007 [code]$sql = 'DELETE FROM `private_messages` WHERE `message_id` = "'.$message_id.'"';[/code] 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.