Hi all,
i'm a new user of PHP,
at the moment, i have queries regarding the "Resource id #4"
everythings run perfectly but before the script showing the result,
it shows the "Resource id #4" in front of the result, and i don't have any clue what happend with it.
Could someone please help me with it.
thanks a lot,
regards,
adi
here is my code:
[code=php]
<?php
require_once('d bconnect.php');
$trackID = $_GET['TrackId'];
$trackName = mysql_query("SE LECT TrackName FROM EHAC_track where TrackId='$track ID'");
$meetingList = mysql_query("SE LECT MeetingID, MeetingDate FROM EHAC_meeting WHERE TrackId='$track ID' ORDER BY MeetingDate");
?>
<ul>
<?php
error_reporting (E_ALL);
ini_set('displa y_errors', true);
Echo $trackName;
$count = 0;
while ($row = mysql_fetch_arr ay($meetingList )) {
Echo "<li><a href=raceInform ation.php?Meeti ngID=".$row['MeetingID']." class=\"item-link-1\">".$row['MeetingDate']."</a></li>";
$count++;
}
if($count==0){
Echo "<span class=\"header-2\">No date available on this track</span>";
}
?>
</ul>[/code]
i'm a new user of PHP,
at the moment, i have queries regarding the "Resource id #4"
everythings run perfectly but before the script showing the result,
it shows the "Resource id #4" in front of the result, and i don't have any clue what happend with it.
Could someone please help me with it.
thanks a lot,
regards,
adi
here is my code:
[code=php]
<?php
require_once('d bconnect.php');
$trackID = $_GET['TrackId'];
$trackName = mysql_query("SE LECT TrackName FROM EHAC_track where TrackId='$track ID'");
$meetingList = mysql_query("SE LECT MeetingID, MeetingDate FROM EHAC_meeting WHERE TrackId='$track ID' ORDER BY MeetingDate");
?>
<ul>
<?php
error_reporting (E_ALL);
ini_set('displa y_errors', true);
Echo $trackName;
$count = 0;
while ($row = mysql_fetch_arr ay($meetingList )) {
Echo "<li><a href=raceInform ation.php?Meeti ngID=".$row['MeetingID']." class=\"item-link-1\">".$row['MeetingDate']."</a></li>";
$count++;
}
if($count==0){
Echo "<span class=\"header-2\">No date available on this track</span>";
}
?>
</ul>[/code]
Comment