$adv ="\n"; $adv.="\n"; $bookmark =""; $bookmark.="
"; //echo $id; require("/usr/local/www/peoples.ru/req/utils_new.class"); $my=new class_utils; $my->sql_connect(); $gotid=$my->check_search_string(trim($id)); $txt=""; $i=0; $aSQL = "SELECT * FROM describe_ru_photo WHERE id='$gotid'"; $aQResult = mysql_query($aSQL); if (mysql_error()) { print(mysql_error()); } while ($row = mysql_fetch_array($aQResult)): $photoname=trim($row['photoname']) ; $idphoto=trim($row['id']) ; $visitors=trim($row['visitors']) ; $id_describe=trim($row['id_describe']) ; $photodescription=trim($row['photodescription']) ; $width=trim($row['width']) ; if ($width>450) { $width=450; }; $qSQL = "SELECT * FROM describe_ru WHERE id='$id_describe'"; $qQResult = mysql_query($qSQL); if (mysql_error()) { print(mysql_error()); } while ($qrow = mysql_fetch_array($qQResult)): $name=trim($qrow['name']) ; $idnum=trim($qrow['id']) ; $nameengl=trim($qrow['nameengl']); $field=trim($qrow['field']); $datepub=trim($qrow['datepub']); $path=trim($qrow['path']) ; $section=trim($qrow['section']) ; // $visitors=trim($row['visitors']) ; $description=nl2br(trim($qrow['description'])); $description_small=substr($description,0,200); endwhile; /* $qSQL = "SELECT * FROM describe_ru_section WHERE nameengl='$section' ORDER BY RAND() LIMIT 1"; $qQResult = mysql_query($qSQL); if (mysql_error()) { print(mysql_error()); } while ($qrow = mysql_fetch_array($qQResult)): $sectionname=$qrow['name']; endwhile; */ if ($field=='regular'): $txt="