include("conn.php");
$gid = $_GET['gid'];
//$sql = "INSERT INTO gallery (name,address,city,state,zip,price,square_feet,school_district,description,direction,thumb_img,big_img,featured)
// VALUES ('$name','$address','$city','$state','$zip','$price','$square_feet','$description','$directions','$filename1','$filename2','$featured')";
$sql = "SELECT category,name,address,city,state,zip,owner,architect,price,square_feet,description,direction,thumb_img,big_img,thumb_img2,big_img2,thumb_img3,big_img3,thumb_img4,big_img4,thumb_img5,big_img5,thumb_img6,big_img6,featured,home FROM gallery
WHERE(gallery_id = '$gid')";
$result = mysql_query($sql) or die("Error:
".mysql_error()."");
list($cat_name,$name,$address,$city,$state,$zip,$owner,$architect,$price,$square_feet,$description,$directions,$thumb_img,$big_img,$thumb_img2,$big_img2,$thumb_img3,$big_img3,$thumb_img4,$big_img4,$thumb_img5,$big_img5,$thumb_img6,$big_img6,$featured,$home) = mysql_fetch_row($result);
?>
if(!empty($thumb_img2)) { ?> ![]() | } ?>
if(!empty($thumb_img3)) { ?> ![]() | } ?>
if(!empty($thumb_img4)) { ?>![]() | } ?>
if(!empty($thumb_img5)) { ?> ![]() | } ?>
if(!empty($thumb_img6)) { ?> ![]() | } ?>
|