View Single Post
Old 10-07-2007, 03:20 PM   #11 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Actually, no Guilds are being found. There is an error in your code which prints out that one (actually prints however many players were found) has been found when in reality it should be printing zero.

Your code (~line 101)
PHP Code:
            echo '<h1>Guilds:</h1>';
            echo 
'<div id="smalltext">Found ' .mysql_num_rows($pResult). ' results.</div><br />'
Amended Code ($pResult changed to $gResult)
PHP Code:
            echo '<h1>Guilds:</h1>';
            echo 
'<div id="smalltext">Found ' .mysql_num_rows($gResult). ' results.</div><br />'
It was just a simple typing mistake (not helped at all by the very similar variable names).
Salathe is offline  
Reply With Quote