I got this from another post here and I was trying to get it to delete some records using that.
<script language=\"JavaScript\">
function deleteRecords() {
if (confirm(\"Are you sure you want to delete these records?\")) {
<?php
$db = mysql_connect(\"$hostname\", \"$username\", \"$password\");
mysql_select_db(\"$database\",$db);
$numresults=mysql_query( \"delete * from sites where Site_ID=$id\",$db);
?>
}
It doesn\'t seem to be working.. i think it might be that its not getting the $id variable value... brain is dead.. must get help! thanks 🙂