PHP expert |
|
zal wel wat fout doen , maar als ik dit heb
<?php
$ranks = array('Banned','Member','Mod','Super Mod','Admin');
for($ranks as $key => $val) {
$levels = (if($key == ".$member['rank'].") ? 'selected="selected"' : '';
echo '<option value="'.$Key.'"'.$levels.'>'.$key.'</option>';
}
?>
<?php $ranks = array('Banned','Member','Mod','Super Mod','Admin'); for($ranks as $key => $val) { $levels = (if($key == ".$member['rank'].") ? 'selected="selected"' : ''; echo '<option value="'.$Key.'"'.$levels.'>'.$key.'</option>'; } ?>
krijg ik deze fout:
Citaat: Parse error: syntax error, unexpected T_AS, expecting ';' in D:serverxampphtdocsusersprofile.php on line 77
regel 77 is de for loop |