if ($conn) { @mysql_select_db('duwopthis_com_-_phpbb') or die("Received this error while selecting database: ".mysql_error()); } $query1 = "SELECT * FROM `phpbb_ranks` WHERE `rank_title`='$team'"; $result1 = mysql_query($query1); if (!mysql_num_rows($result1)) { // If no rows are returned this statement is true die("Query returned nothing...no such $team"); } print '
| Real Name: | Rank: | Alias: |
| NA | "; print "{$query2} | "; print "" . mysql_result($result,$i,'username') . " | "; } } }