"; $sql=mysql_query($consulta,$link); echo "

"; $id=$_POST['galeria']; if (empty($id)){ $id=1; } $cons="SELECT * FROM `wp_ngg_pictures` where galleryid='$id'"; //echo $cons,"
"; $sq=mysql_query($cons,$link); $c="SELECT * FROM `wp_ngg_gallery` WHERE `gid` ='$id'"; $s=mysql_query($c,$link); $r=mysql_fetch_array($s); $nombre=$r['name']; $titulo=$r['title']; echo '

Fotos de la Galerķa '.$titulo.'

'; echo '
'; while ($rowi=mysql_fetch_array($sq)){ echo ''.$rowi['description'].''; } echo '
'; ?>