I am new to PHP and I am having issues pulling this data in.. It is finding the records according to the debugger but then for some reason the page comes blank. Can anyone please help me with this for loop to retrieve the fields?, i think this is where the issue is. I tried with and without that while loop (which i think is wrong there) and nothing
echo '<table class="table_content">
<tr>
<td class="td_order" colspan="3" width="800px">
Descriptions </td>
</tr><tr>';
for($counter = 0; $row2 = mysql_fetch_row($result2); $counter++)
{
while ($row2 = mysql_fetch_assoc($result)) {
$_name = $row["_name"];
$_image = $row["_image"];
$_disc = $row["_disc"];
}
print("<td valign='top' width='230px' height='300px'>");
print("<p style='font-size:18px; color:blue; padding:0;'>$_name</p>");
print("<img class='custom' alt='' src='$_image'/>");
print("<p>$_disc</p>");
print('</td>');
}
}
echo '</tr></table> ';
I think I am doing something wrong with this logic for the loop, I have tried several things.. but nothing... I would appreciate your help.
PS: The connections works, the query works.. The data being retrieve is as foollow
_name _image _disc
Benjamin images/benjamin.jpg He's a great person
Jairo images/jairo.jpg Jairo has experience as a civil engineer..