Posts: 2,536
Location: Western Maryland
|
hudster, both Phaedrus and Gaffer point out good points -- $issue and $type are never set. Use print to debug your sql and also make the following call to see how many rows you are getting back:
PHP Code:
print "<p>Number of results returned by SQL query: " . mysql_num_rows( $result );
However, if $result is not a valid mysql resource (that is, if the query failed), this call will produce the same error.
__________________
—Kyrnt
|