if (empty ($_GET['g_id'])) $_GET['g_id']='';
if (!empty($_GET['g_id']))
{
//print('g_id értéke:'.$_GET['g_id']);
$result2=mysql_query("SELECT g_cim,g_nev FROM galeriak WHERE galeriak.g_id='$_GET[g_id]'");
list($str_g_cim,$str_g_nev)=mysql_fetch_row($result2);
$sql="SELECT * FROM kepek WHERE kepek.g_id='$_GET[g_id]' ORDER BY kep_id DESC";
if ($result=mysql_query($sql, $kapcsolat))
{
$td=1;
$ujsor=1;
while ($kep=mysql_fetch_array($result))
{
if ($ujsor==1) print('