Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

While Loop Problem

$
0
0

So I'm working on a bit of code that is supose to grab information and then run a loop. I've written something like this in the past but for some reason I cannot get it to work propery. I know I'm most likely missing something small but I can't find it. A fresh pair of eyes couldn't hurt. When I run it I get a blank page no error message.

 

$query = "SELECT * FROM tbl_chapters ";
$query .= "WHERE State = 'CA' ";
$result_set = mysql_query($query, $connection);
confirm_query($result_set);
$chapter_set = mysql_fetch_array($result_set);
return $chapter_set;
           

while ($row = mysql_fetch_array($chapter_set)) {
        echo $row["Chapter"];
}

 

Anyone?


Viewing all articles
Browse latest Browse all 13200

Trending Articles