Hi I have this this code
{while ($row = mysql_fetch_arr ay($numresultsg al)) {
$table=$row{'ta ble_gal'};
$numresultphoto s=mysql_query(" SELECT * FROM" .$table. "order by date desc");
$numphotos=mysq l_num_rows($num resultphotos);
echo"<b>Gallery :</b> " .$row{'gallery' }. "<br>";
echo "<b>No. Of Photos:</b> " .$numphotos. "<br>" ;}
But it keeps failing to produce the number of photos in the gallery. But it
will display the table name if i want it to. So it's got the correct name,
so any ideas why it's failing and not telling me how many rows are in the
database.
Thanks
--
Kathryn (Fire Juggler)
{while ($row = mysql_fetch_arr ay($numresultsg al)) {
$table=$row{'ta ble_gal'};
$numresultphoto s=mysql_query(" SELECT * FROM" .$table. "order by date desc");
$numphotos=mysq l_num_rows($num resultphotos);
echo"<b>Gallery :</b> " .$row{'gallery' }. "<br>";
echo "<b>No. Of Photos:</b> " .$numphotos. "<br>" ;}
But it keeps failing to produce the number of photos in the gallery. But it
will display the table name if i want it to. So it's got the correct name,
so any ideas why it's failing and not telling me how many rows are in the
database.
Thanks
--
Kathryn (Fire Juggler)
Comment