Ik krijg de volgende foutmelding op de site:
Wedstrijdschema Jeugd B1 seizoen 2012-2013
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/schaesberg/domains/vvschaesberg.nl/public_html/wedstrijdschema.php on line 35
Er is nog geen wedstrijdschema beschikbaar.
Onderstaand het script: Line 35 heb ik dikgedrukt! Wie kan helpen? Dank jullie
<?php
$categorie = $_GET['p2'];
if($categorie == "junioren")
{
$categorie_q = "jeugd";
}
elseif($categorie == "pupillen")
{
$categorie_q = "jeugd";
}
else
{
$categorie_q = $categorie;
}
$team = $_GET['p3'];
$seizoen = "2012-2013";
if(substr($team,0,4) == "team")
{
$get_team = str_replace("team-", "", $team);
}
else
{
$get_team = $team;
}
$teamvolledig = "V.V. Schaesberg " . $get_team;
echo "<h1 style=\"padding:0px 0px 15px 0px;\">Wedstrijdschema " . ucfirst($categorie) . " " . ucfirst(str_replace("-", " ", $team)) . " seizoen " . $seizoen . "</h1>";
$query_wedstrijden = "SELECT *, DATE_FORMAT(datum, '%a %e %M %Y') as datum_format, DATE_FORMAT(tijd, '%H:%i') as tijd_format FROM wedstrijdschema WHERE categorie = '$categorie_q' AND (thuis = '$teamvolledig'OR uit = '$teamvolledig') AND seizoen '2012-2013' AND (doelpunten_thuis IS NULL AND doelpunten_uit IS NULL) ORDER BY datum ASC";
$result_wedstrijden = mysql_query($query_wedstrijden);
LINE 35 >>if(mysql_num_rows($result_wedstrijden) !=0)
{
echo "<table style=\"width:100%;\" cellpadding=\"5\" cellspacing=\"1\">";
while($record_wedstrijden = mysql_fetch_object($result_wedstrijden))
{
if($record_wedstrijden->status != "")
{
$status = "<div style=\"colored; font-weight:bold;\">" . $record_wedstrijden->status . "</div>";
}
else
{
$status = "-";
}
if($record_wedstrijden->thuis == $teamvolledig)
{
$thuis = "<b>" . $record_wedstrijden->thuis . "</b>";
}
else
{
$thuis = $record_wedstrijden->thuis;
}
if($record_wedstrijden->uit == $teamvolledig)
{
$uit = "<b>" . $record_wedstrijden->uit . "</b>";
}
else
{
$uit = $record_wedstrijden->uit;
}
$bg = ($a++ % 2) ? "********" : "#ebebeb";
echo "<tr style=\"background-color:" . $bg . ";\">
<td style=\"width:143px; font-size:11px;\">" . ucfirst(nlMonth($record_wedstrijden->datum_format)) . "</td>";
if($record_wedstrijden->thuis == "Geen team" or $record_wedstrijden->uit == "Geen team")
{
echo "<td colspan=\"5\" style=\"font-size:11px;\"><center><i>Geen wedstrijd</i></center></td>";
}
else
{
echo"
<td style=\"font-size:11px;\">" . $record_wedstrijden->tijd_format . "</td>
<td style=\"font-size:11px;\">" . $record_wedstrijden->type . "</td>
<td style=\"font-size:11px; text-alignight;\">" . $thuis . "</td>
<td style=\"font-size:11px; text-align:center;\">" . $status . "</td>
<td style=\"font-size:11px;\">" . $uit . "</td>
</tr>";
}
}
echo "</table>";
echo "<p> </p>";
}
else
{
echo "<p style=\"font-size:11px font-weight:bold; font-style:italic;\">Er is nog geen wedstrijdschema beschikbaar.</p>";
}
?>

Likes:


ed; font-weight:bold;\">" . $record_wedstrijden->status . "</div>";
Quote
Maar zoals BReady al aangeeft geen connect of whatsoever.