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? Link to comment https://forums.phpfreaks.com/topic/35584-delete-entry-syntax-not-sure/ 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] Link to comment https://forums.phpfreaks.com/topic/35584-delete-entry-syntax-not-sure/#findComment-168528 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.