hey, your a life saver, thanks, there were some small parse errors but doesnt matter i patched up and worked great, its the same script but had like a ; and a } missing, hey at least its only 2 when i code i have like an error on every line. THANK YOU!!! 😃 😃 😃
heres the script with the parse corrected
{
$query = "SELECT *
FROM users
WHERE privelages > 80 <100
ORDER BY privelages DESC";
$result = mysql_query($query);
if(!$result){
echo mysql_error();}
else
{
$i=1;
$output .= '<table width="100%" border="0">';
while($stafflist = mysql_fetch_array($result))
{
$j = $i%4; // What is left when we remove al multitudes of 4 from $i
if($j == 1) // First run: Add <tr>
{
$output .= "<tr>";
} $name = $stafflist['first_name'];
$title = $stafflist['title'];
$picture = $stafflist['avatar'];
$output .= "<td width=\"25%\">".$picture."<br />".$name." \ ".$title." </td>";
if($j ==0) // Last of row: Add </tr>
{
$output .= "</tr>";
}
$i++;
}
for($j = $i%4; $j<4;$j++) // Finish the table
{
$output .= "<td></td>";
}}
$output .= "</table>";
echo $output;
}