Is there a better way to do this?
<?PHP
$sql_featured='select user_id from friend_featuredusers where featured="1" order by rand() limit 0,2';
$result_featured=executequery($sql_featured);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td>
<?PHP
if($line_featured=mysql_fetch_assoc($result_featured)){
echo show_user_photo($line_featured[user_id],$photo_type='small',$user_name='yes');
}
?>
</td>
<td> <div align="center">
<?PHP
if($line_featured=mysql_fetch_assoc($result_featured)){
echo show_user_photo($line_featured[user_id],$photo_type='small',$user_name='yes');
}
?>
</td>
</tr>
</table>