Warning: mysql_fetch_array().... [php].
Googlat runt och även sökt i SC forum, men hittar då inget.
Någon som vet vad som är galet? Suttit och försökt fixa det är
ett tag nu, men nope vill sig ej.
tack på förhand!
Warning: mysql_fetch_array() expects parameter 1 to be resource, string given in D:\wamp\www\exact\include\matchesdetails.php on line 11
<?php
print " <table width='600' border='0'>";
$id = $_GET['id'];
require('mysql_connect.php');
$result = mysql_query("SELECT matches.id, matches.teamid, matches.gico AS pic, matches.game AS game, matches.vs AS vs, matches.result AS result, matches.map AS map, matches_details.m_id, matches_details.date AS date, matches_details.vs_homepage AS homepage, matches_details.vs_country AS vs_country, matches_details.type AS type, matches_details.report AS report FROM matches, matches_details WHERE matches.id=matches_details.m_id AND matches.id='$id' AND matches_details.m_id='$id'") OR DIE (mysql_error());
while($row = mysql_fetch_array($result))
{
$pic = $row['pic'];
$game = $row['game'];
$vs = $row['vs'];
$result = $row['result'];
$map = $row['map'];
$date = $row['date'];
$homepage = $row['homepage'];
$vs_country = $row['vs_country'];
$type = $row['type'];
$report = $row['report'];
print "
<tr>
<td colspan='2' class='headfont'>". $game ." vs. ". $vs ." </td>
</tr>
<tr>
<td colspan='2'></td>
</tr>
<tr>
<td width='165'></td>
<td width='425'></td>
</tr>
";
}
print "</table>";
?>