Very odd. What happens with this code?
$query1 = "SELECT story_id, photo_caption FROM photo WHERE story_id LIKE '$intId' LIMIT 4";
$result1 = mysql_query($query1, $conn);
$num_p1 = mysql_num_rows($result1);
echo "Returned records = ".$num_p1."<BR><BR>";
// $num_p1 should equal 2
for($counter=1; $counter <= $num_p1; $counter++)
{
$row = mysql_fetch_array($result1);
echo "<span class=bodytext>" . $row[photo_caption] . " Row $counter</span><br><br>";
// This loop will execute twice, and will echo the photo_caption for row 1 first time
// then for row 2 second time
}
Please can you send me the URL where I can view the results of this code to Sales[at]AQHost.com
Simon.