function DesignersDelete($designer, $site) {
global $prefix, $db;
$sql = mysql_query("DELETE * FROM ".$prefix."_theme_authors WHERE author='$designer'") or die("Error: ".mysql_error());
Header("Location: admin.php?op=ThemeSystem");
}
It dosnt delete the row, any ideas what is wrong with this?
function DesignersDelete($designer, $site) {
global $prefix, $db;
$sql = "DELETE * FROM ". $prefix ."_theme_authors WHERE author='$designer'";
$query = mysql_query($sql) or Die("Error: " . mysql_error());
Header("Location: admin.php?op=ThemeSystem");
}
a query is nothing more then a string. what you had originally should have worked, but the code above should work... unless your colum names are different or something.
Last edited by dull1554 on Tue Jul 11, 2006 2:47 pm, edited 1 time in total.