February 20, 2009

How do I add a table row after counting mysql data with php?

mysql
project96gsr asked:


After I do a mysql_num_rows to count the database how would I echo a
at the start of the count and a

at the end of the count? I have something like this but it doesn’t seem to work:

if ($count_gallery == 0) {
echo ‘
‘;
}

echo “ $gallery

“;

if ($count_gallery == 3) {
echo ‘

‘;
}

Filed under Programming & Design by administrator

Permalink Print

Comments on How do I add a table row after counting mysql data with php?

February 22, 2009

DzSoundNirvana @ 3:32 pm

while

$i=0;
echo “”;
while($i>$count_gallery){
echo “$gallery”;
$i++;
}
echo “”;

netemp @ 7:15 pm

Your question is unfortunately not clear.

Though making a small change in DzSoundN answer may prove to be of help:

$i=0;
echo “”;
while($i sign to < in while loop.)