0) { echo '
'; $i = 1; while ($GALLERY_PICS = mysql_fetch_array($RESULT_IMAGE)) { $IMAGE_FOLDER = "about_us"; $IMAGE = $GALLERY_PICS["picture_pic"]; $IMAGE_ID = $GALLERY_PICS["pic_id"]; $IMAGE_DESCRIPTION = urldecode(stripslashes($GALLERY_PICS['picture_desc'])); list($IMAGE_WIDTH, $IMAGE_HEIGHT) = getimagesize("images/$IMAGE_FOLDER/$IMAGE"); $NEW_WIDTH = 115; $SCALE = $NEW_WIDTH / $IMAGE_WIDTH; $NEW_HEIGHT = floor($SCALE*$IMAGE_HEIGHT); echo "\n"; echo "
\n"; echo "\n"; echo "\"\"\n"; echo "\n"; echo "
\n"; if (($i % 2) == 0) { echo '
'; } $i = $i + 1; echo "\n"; } echo '
'; } $QUERY = "SELECT * FROM about_us WHERE id = '1'"; $RESULT = mysql_query($QUERY) or die('Error, query failed'); $NUM_RESULT = mysql_num_rows($RESULT); if ($NUM_RESULT > 0) { while ($ROW = mysql_fetch_array($RESULT)) { echo urldecode(stripslashes($ROW["txt"])); } } ?>