Forum Moderators: coopster
I'd like to indent properly, but I sadly cannot at some points because I'm grabbing fragments that are vital only.
while() loop
while ($sub_list = mysql_fetch_assoc($list))
{
$system->templates->load('submission/submission_list');
}
All that load() function does is include the file. The file that has the actual contents now is:
submission_list
<?
/*
@title: Submission List
@description: Lists the Submissions.
*/echo '
<tr>
<a href="'.$sub_list['category'].'/'.$sub_list['alias'].'/">
<img src="'.$sub_list['thumbnail'].'" alt="" />
<br />
'.$sub_list['title'].'</a></td>
<td><a href="/forums/member.php?uid='.$sub_list['author'].'">'.$author['username'].'</a></td>
<td><a href="'.$category['cat_alias'].'">'.$category['cat_title'].'</a></td>
<td>'.$sub_list['version'].'</td>
<td>'.$views.'</td>
<td>'.$downloads.'</td>
<td>'.$installs.'</td>
</tr>';
?>
Yes, I have even attempted to use globals, but not even that works correctly with while() loops. Ignore any variables that are not $sub_list by the way.
If you need more information, I'd be glad to provide more.
[edited by: Furutsuzeru at 7:47 pm (utc) on Sep. 13, 2008]