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:
Expand|Select|Wrap|Line Numbers
- <?php
- require_once('dbconnect.php');
- $trackID = $_GET['TrackId'];
- $trackName = mysql_query("SELECT TrackName FROM EHAC_track where TrackId='$trackID'");
- $meetingList = mysql_query("SELECT MeetingID, MeetingDate FROM EHAC_meeting WHERE TrackId='$trackID' ORDER BY MeetingDate");
- ?>
- <ul>
- <?php
- error_reporting(E_ALL);
- ini_set('display_errors', true);
- Echo $trackName;
- $count = 0;
- while ($row = mysql_fetch_array($meetingList)) {
- Echo "<li><a href=raceInformation.php?MeetingID=".$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>