[snip]
        $found = 0;
        while ($mydata = mysql_fetch_object($news))
        {
                if ($mydata->StudentId == $StudentId)
                        {$found = 1;  break;}
        }

        if ($found==1){do this}else{do that}
[/snip]

Why two if's? Isn't if the student is found in the first if, don't you
want to do stuff then? Just curious...

I had a Vic20 sitting next to a Lisa... :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to