Execute("SELECT * FROM general"); $id=(int)$_GET['id']; $potd = $CONN->Execute("SELECT A.*, (SELECT COUNT(*) AS total_res FROM galleries_res B WHERE B.galid=A.id AND B.is_active=1) AS total_res FROM galleries A WHERE is_potd=1 AND is_active=1 AND id=$id ORDER BY sorting DESC"); ?> קצר | תמונות | <?=$potd->Fields('title')?>
קצר
ב"ה,
Execute('SELECT * FROM cats WHERE is_articles=1 AND hidden=0'); echo '»ראשי'; while (!$cats->EOF) { if ($cats->Fields('id')==$cat) { echo '»'.$cats->Fields('name').''; $cat_name = $cats->Fields('name'); } else { echo '»'.$cats->Fields('name').''; } $cats->MoveNext(); } $cats->Close(); unset($cats); echo '»דעות'; echo '»כותרות העיתונים'; echo '»תמונות'; ?>
*/ ?>
Fields('title')?>

Fields('is_manual_date')==1) { $time=$potd->Fields('manual_date'); } else { $time=$potd->Fields('addtime_ts'); } ?>
()

Fields('subtitle')?>

צילום: Fields('photographer')?>
Execute("SELECT * FROM galleries_pics WHERE galid=$id ORDER BY sorting ASC"); /* if (!$pics->EOF) { $pics_counter=0; echo ''; while (!$pics->EOF) { $pics_counter++; ?> '; } $pics->MoveNext(); } $remain=$pics_counter%3; $remain=(3-$remain); for ($i=1; $i<=$remain; $i++) { echo ''; } echo '

'; } */ while (!$pics->EOF) { echo '
'; if (strlen(''.$pics->Fields('pic_desc'))>0) { echo '
('.nl2br(trim($pics->Fields('pic_desc'))).')
'; } echo '
'; $pics->MoveNext(); } $pics->Close(); unset($pics); ?>
Fields('total_res')?> תגובות
» הוספת תגובה
Fields('id'); $res = $CONN->Execute("SELECT * FROM galleries_res WHERE galid=$artid AND is_active=1 ORDER BY sorting ASC"); if (!$res->EOF) { echo ''; ?> EOF) { $counter++; ?> MoveNext(); } $res->Close(); unset($res); echo '
תגובות
'.$res->Fields('title').''?>

Fields('body')), '

')?>

'; } ?>
הוספת תגובה
כותרת

טקסט

נא להימנע מלשון הרע, רכילות ותגובות פוגעניות

Close(); unset($potd); ?>
שימושון
Close(); unset($general); DATABASE('close'); ?>