Code after while() loop not executing
Posted: Sun Apr 15, 2007 7:05 pm
Hey All,
I have this while() loop producing some HTML from some data in the database. However, (and I am sure the query is fine) the code after the while isn't be adding to the variable (as you'll see in the code). Even though the variable isn't being added on to after the loop, the site still renders and works fine otherwise.
Any thoughts?
Thanks
I have this while() loop producing some HTML from some data in the database. However, (and I am sure the query is fine) the code after the while isn't be adding to the variable (as you'll see in the code). Even though the variable isn't being added on to after the loop, the site still renders and works fine otherwise.
Any thoughts?
Code: Select all
$projectlist = '<td width="37" height="361" valign="top" background="graphics/panel_back.jpg" class="projectlist">';
$projectlist .= '</td>';
$projectlist .= '<td width="125" background="graphics/panel_back.jpg" valign="top" class="projectlist"><span class="style49">';
while ($data = $kernel->DB->fetch_row()) {
$projectlist .= $data['ProjectName'] . '<br>';
}
$projectlist .= '</span></td>';
$projectlist .= '<td width="65" background="graphics/panel_back.jpg" valign="top" class="projectlist"><span class="style40">';