ok, i am probably going about it the wrong way but i made an admin script for a newsboard where i can delete/modify messages. My script isnt working tho, anyone that can help me with it?
heres the code
<?
$conn = mysql_connect("localhost", "", "")
or die ("Couldnt connect to server");
$select_db = mysql_select_db($dbname, $conn)
or die ("Failed to select database");
$query = mysql_query("DELETE * FROM $dbname WHERE image ='$image' AND textstuff = '$text' AND datetoday = '$date'");
if($query) {
echo "success";
} else {
echo "failed";
}
?>
the script is giving me the custom error message "failed" from near the end of the script, and isnt deleting the record from the database. Any suggestions?