Greetings once again,

Today I hope to have a challenge for you. :)

I've created a query which returns 1 record. This is confirmed when testing
it in MySQL itself.
Now PHP sees that there is 1 record in the result, but is completely
unwilling to show the information.
The css responsible for that page does not change the color of the text so
it should (like all the rest of the page is) be visible.

Please help :)



$query = "SELECT concat(rank_tbl.abbreviation, ' ',, ' ',
character_tbl.surname) as CO,
              character_tbl.ircnick,  FROM
character_tbl, rank_tbl, sim_tbl WHERE =
              AND character_tbl.rank = AND = AND  character_tbl.rank  =
              AND = $sim_id";

    $result         =   mysql_query($query);
    $num_rows       =   mysql_num_rows($result);

    if ($num_rows == 1)
        while ($row = mysql_fetch_array($result));
            $co     =   $row["CO"];
            $nick   =   $row["ircnick"];
            $email  =   $row["email"];
        echo "
                    <td width=\"50\"></td>
                    <td width=\"125\">CO:<td>
                    <td><a href=\"$email\">$co</a></td>
                    <td width=\"50\"></td>
                    <td width=\"125\">IRC NICK<td>
                    <td width=\"50\"></td>
                    <td width=\"125\"><td>
        echo "<br> <p class=\"medium\">No Commanding Officer assigned to

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to