Jump to content

[SOLVED] Delete help?


darkfreaks

Recommended Posts

<?php

 

if($_POST['journal']) {

mysql_query("DELETE FROM vc_journal WHERE id='$id'");

mysql_query("DELETE FROM vc_jcomments WHERE jid='$id'");

echo "Your journal(s) have been deleted<br>"; }

?>

 

that should work, assuming that journal was posted, just try it and let me know.

Link to comment
https://forums.phpfreaks.com/topic/89301-solved-delete-help/#findComment-457276
Share on other sites

You have been here long enough to know the basic debugging procedures for a query.

 

<?php

if($_POST['journal']) {

$query = "DELETE FROM vc_journal WHERE id='$id'";
$query2 = "DELETE FROM vc_jcomments WHERE jid='$id'";

$result = mysql_query($query)or die(mysql_error() . "<p>With Query:<br>$query<p>");
$result2 = mysql_query($query2)or die(mysql_error() . "<p>With Query:<br>$query2<p>");

echo "Your journal(s) have been deleted<br>";


?>

Link to comment
https://forums.phpfreaks.com/topic/89301-solved-delete-help/#findComment-457281
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.