this is my code
$result = mysql_query("SELECT menucon_1,menucon_2,menucon_3,menucon_4,menucon_5 FROM sfb_pages WHERE adstack =1");
----------------------------------------
$start = strpos($str, 'src="');
$end = strrpos($str, '">');
$len = $end - $start;
$str = (substr($str,$start,$len));
$newStr = str_replace('src="', '', $str);
$my_image = array_values(getimagesize($newStr));
list($width, $height, $type, $attr) = $my_image;
echo "<br>";
//spit out content
echo 'Height: '.$height.'<br />';
echo 'Width: '.$width.'<br />';
if ($height == 125 && $width == 125)
{
echo '<img src="' . $newStr . '">';
} else {
echo "wrong image size";
}
at the top of the code I want to select all rows from the columns above and then run each menucon through the php commands below
how would I go about doing this...