not a valid MySQL result resource
Hvad er der galt her....?<?
if ($action=="opdater"){
if ($spilledato) {
$result = mysql_query("select * from beach where spilledato like '$spilledato' ");
$nummer = mysql_num_rows($result);
if ($nummer>0){echo "Datoen findes allerede, du kan tilmelde dig i stedet....<br>"; exit;
}
else {
$resultat = mysql_query("INSERT INTO beach (linket, spilledato, spilletid, linkto, deltagere) VALUES ('<a href=beach_spilledato.php>','$spilledato','$spilletid','</A>','$husk_navn')");
?>
<div align="center"><h2><?echo "Datoen er oprettet.";?></h2></div><?
}
}
}?>
<form action="<? echo $php_self; ?>" method="post">
<table border=0 width=100%><tr>
<td width=40%>Spilledato: [YYYY-MM-DD]</td>
<td width=60%><input type=text name="spilledato" size =20 value=""></td></tr></table>
<table border=0 width=100%><tr><td width=40%>Spilletidspunkt: </td>
<td width=60%><input type="text" name="spilletid" size =20 value=""></td></tr></table>
<div align="center"><input type="submit" name="action" size=10 value="opdater"></div></form>
Følgende fejl kommer:
Warning: Supplied argument is not a valid MySQL result resource in c:\appserv\www\fvbk\beach\beach_opret_spilledato.php on line 5
