my problem isn't solved :-(
I want to click a button an then a javascript window asks are you sure you want to delete this game. And when the say "yes" the game has to be deleted! And when the say "no" it stays there:
This is what i'm trying right now but it isn't working:
PHP:
printf("<input type=button name=verwijderen value=Verwijderen onClick='test = verwijderen(%s);'>",$myrow["id"];
JAVASCRIPT FUNCTION :
function verwijderen(id){
alert("test");
<?
$SQL = "update fsb_wedstrijden set confirm = 0 where id = '$id'";
mysql_query( $SQL ) or die( mysql_error() );
?>
return 1;
}