Jump to content

[SOLVED] Basic While Loop not working...


suttercain

Recommended Posts

Hi everyone,

 

I have this basic while loop that is not working :

 

<?php
$query = mysql_query("SELECT * FROM comicArt") or die(mysql_error());

echo mysql_num_rows($query);//Echoes 1, which is correct
    while ($row = mysql_fetch_array($query)) {
     echo "Hello....!"; //but this does not echo
    }
?>

Link to comment
https://forums.phpfreaks.com/topic/73666-solved-basic-while-loop-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.