adding a crime panel in admin panel
okay so after quite a few smacks of the screen i finally sorted the add new crimegroup thing
the mysql query needs to be changed from
mysql_query("INSERT INTO crimegroups (cgNAME, cgORDER) VALUES( '{$_POST['cgNAME']}', '{$_POST['cgORDER']})", $c);
to
$res = mysql_query("INSERT INTO `crimegroups` (`cgNAME`, `cgORDER`) VALUES('".$_POST["cgNAME"]."','".$_POST["cgORDER"]."')");
if (!$res) { die('error: '.mysql_error()); }
and it worked for me
okay but i can't get delete crimegroup to work it just stays on my admin panel and don't actually switch to anything to delete
any idea's?