Quote:
PHP Code:
$avatarcount = 0;
$avatarlist.="<tr><td bgcolor=\"#13486D\"><img name=avatarswitch src=images/blank.gif></td><td bgcolor=\"#13486D\"><select name=newavatar onChange=\"switchimg(this);\"><option value=\"\">";
while ($avatar=$DB_site->fetch_array($avatars)) {
$avatarid=$avatar[avatarid];
$avatarlist.="<option value=\"$avatar[avatarpath]\">$avatar[title]";
/*
if ($avatarcount==0)
$avatarlist .= '<tr>';
eval("\$avatarlist .= \"".gettemplate("modifyavatarbit")."\";");
$avatarcount++;
if ($avatarcount==$numavatarswide) {
$avatarlist .= '</tr>';
$avatarcount = 0;
}
*/
}
if ($avatarcount!=0) {
/*
while ($avatarcount < $numavatarswide) {
$avatarlist .= '<td bgcolor="#13486D"> </td>';
$avatarcount++;
}
*/
$avatarlist .= '</tr>';
}
|
The only thing I can think of is it having problems with the select not being ended, though it worked on my server. Try this instead:
PHP Code:
$avatarcount = 0;
$avatarlist.="<tr><td bgcolor=\"#13486D\"><img name=avatarswitch src=images/blank.gif></td><td bgcolor=\"#13486D\"><select name=newavatar onChange=\"switchimg(this);\"><option value=\"\">";
while ($avatar=$DB_site->fetch_array($avatars)) {
$avatarid=$avatar[avatarid];
$avatarlist.="<option value=\"$avatar[avatarpath]\">$avatar[title]";
/*
if ($avatarcount==0)
$avatarlist .= '<tr>';
eval("\$avatarlist .= \"".gettemplate("modifyavatarbit")."\";");
$avatarcount++;
if ($avatarcount==$numavatarswide) {
$avatarlist .= '</tr>';
$avatarcount = 0;
}
*/
}
if ($avatarcount!=0) {
/*
while ($avatarcount < $numavatarswide) {
$avatarlist .= '<td bgcolor="#13486D"> </td>';
$avatarcount++;
}
*/
$avatarlist .= '</select></tr>';
}