Jump to content

Small error..can't find it


corc

Recommended Posts

Alright so I've got this really simple script:
[code]<table width="80%" cellpadding="0" cellspacing="0" border="0" class="news">
<tr><td><b>Meet Name:</b></td><td><b>Date:</b></td><td><b>Location:</b></td><td><b>Results:</b></td></tr>

<?php

// Display current schedule
include("./pk2/db.php");
include("./pk2/db2.php");

$readschedule = 'SELECT event, date, date_int, location, res_query, res_link FROM park_schedule ORDER BY date_int

ASC';

if ($readsched1 = mysql_query ($readschedule)) {
while ($row = mysql_fetch_array ($readsched1)) {
print ("<tr>\n");
print ("<td>{$row['event']}</td>\n");
print ("<td>{$row['date']}</td>\n");
print ("<td>{$row['location']}</td>\n");
print ("<td>");
// If results posted, make link.
if ({$row['res_query']} == 1) {
print ("<a href=\"{$row['res_link']}\">Results</a>");
} else {
print ("Results Not Available");
}
print ("</td>\n</tr>");
}
} else {
die ('<p>Could not retrieve the data because: <b>' . mysql_error() . "</b></p><p>The query

was:<br>$readschedule</p>");
}

mysql_close();

?>
</table>[/code]

And there's some stupid little typo in it somewhere that's causing it to not work. I just need a little help finding it..I've been staring at this for like 2 hours now.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.