Hello everyone ^_^
Well, I'm trying to edit the script WhoIsOnline Flags show, where if there's no flag in player's account, it shows an error image.
Error:
This part that I'm editing:
Line 78:
This is the table:
Help, please!
Well, I'm trying to edit the script WhoIsOnline Flags show, where if there's no flag in player's account, it shows an error image.
Error:
Warning: Error parsing D:/Elf Server/config.lua on line 140 in D:\xampp\htdocs\config-and-functions.php on line 13
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\xampp\htdocs\highscores.php on line 78
This part that I'm editing:
PHP:
$acc = $SQL->query('SELECT * FROM '.$SQL->tableName('accounts').' WHERE '.$SQL->fieldName('id').' = '.$skill['account_id'].'')->fetch();
if(!$acc['flag']) {
$flagimg = "http://img10.imageshack.us/img10/1705/icoerror.gif";
} else{
$flagimg = "flags/'.$acc['flag'].'.png";
}
Line 78:
PHP:
$flagimg = "flags/'.$acc['flag'].'.png";
This is the table:
PHP:
$main_content .= '<tr bgcolor="'.$bgcolor.'"><td><center><image src="$flagimg"></center></td><td>'.($offset + $number_of_rows).'.</td><td><a href="?subtopic=characters&name='.urlencode($skill['name']).'">'.($skill['online']>0 ? "<font color=\"green\">".$skill['name']."</font>" : "<font color=\"red\">".$skill['name']."</font>").'</a><br><small>'.$skill['level'].' '.$vocation_name[$world_id][$skill['promotion']][$skill['vocation']].'</small></td><td><center>'.$skill['value'].'</center></td>';
Help, please!