Getting Closer
| From: | Ben Ocean | Date: | Thu, 29 Jun 2000 19:13:59 +0000 |
| Subject: | Getting Closer | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3922@lists.php.net to get a copy of this message | ||
Hi;
I'm making progress! I have a problem...
if ($colorz != 9) {
$result = mysql_query("SELECT id, name, color FROM horse ORDER BY name");
$total_rows = mysql_numrows($result); $counter = 0;
while($counter < $total_rows):
$id = mysql_result($result,$counter,"id"); echo "\n";if ($row[$counter]->color == $colorz) {
echo mysql_result($result,$counter,"name");
echo "<br>";
}
$counter = $counter + 1;
endwhile;
Everything seems to be working here *except* this line:
if ($row[$counter]->color == $colorz) {
I'm trying to call the