Thread: jquery gallery
View Single Post
Old 02-18-2012, 08:33 PM   #2 (permalink)
AxelG
The Wanderer
 
AxelG's Avatar
 
Join Date: Feb 2012
Posts: 16
Thanks: 0
AxelG is on a distinguished road
Default

Replace the en of your script by that :

$resultat = mysql_query ($sql_streng, $dblink);
$antal_raekker = mysql_num_rows($resultat);

if ($antal_raekker == 0)
{
echo "Der er ingen fotos at vise!";
}
else
{
while ($raekke = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<img src=\"fotos/$raekke[fotonavn]\" alt=\"fotos/$raekke[fotonavn]\" width=\"75px\" height=\"75px\" title=\"$raekke[titel] /><br><br>";

}
}


It should work
AxelG is offline  
Reply With Quote