Nieuw lid |
|
Ik heb een crimescript gemaakt maar bij de rankvordering doet hij het niet wat doe ik fout?
<td class=mainTxt width="137"><b>Rank Vordering:</b></td>
<td class=mainTxt title="Hier zie je op hoeveel procent je zit van je nieuwe rank!" width="137"><?
$data = mysql_fetch_object($dbres);
$data->rankvord = ($data->rankvord >= 0) ? "{$data->rankvord}" : 0;
if($data->rankvord > 50) {
print <<<ENDHTML
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100"><tr><td width="{$data->rankvord}%" height="14" bgcolor="#936301"><font color="#000000"><p align="center"><b>{$data->rankvord}%</b></font></td><td width="{$data->rankvord}%" height="14" bgcolor="#B28427"></td></tr></table> </td></tr>
ENDHTML;
}
else{
print <<<ENDHTML
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100"><td width="{$data->rankvord}%" height="14" bgcolor="#936301"></td><td width="100" height="14" bgcolor="#B28427"><b><font color="#FFFFFF">{$data->rankvord}%</font></td></tr></table> </td></tr>
ENDHTML;
} ?></td>
</tr>
<td class=mainTxt width="137"><b>Rank Vordering:</b></td> <td class=mainTxt title="Hier zie je op hoeveel procent je zit van je nieuwe rank!" width="137"><? $data->rankvord = ($data->rankvord >= 0) ? "{$data->rankvord}" : 0; if($data->rankvord > 50) { <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100"><tr><td width="{$data->rankvord}%" height="14" bgcolor="#936301"><font color="#000000"><p align="center"><b>{$data->rankvord}%</b></font></td><td width="{$data->rankvord}%" height="14" bgcolor="#B28427"></td></tr></table> </td></tr> ENDHTML; } else{ <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100"><td width="{$data->rankvord}%" height="14" bgcolor="#936301"></td><td width="100" height="14" bgcolor="#B28427"><b><font color="#FFFFFF">{$data->rankvord}%</font></td></tr></table> </td></tr> ENDHTML; } ?></td> </tr>
De Errors:
Citaat: Notice: Undefined variable: dbres in E:MySQLNieuwe map (2)UsbWebserverRootRank.php on line 3
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in E:MySQLNieuwe map (2)UsbWebserverRootRank.php on line 3
Notice: Trying to get property of non-object in E:MySQLNieuwe map (2)UsbWebserverRootRank.php on line 4
Notice: Trying to get property of non-object in E:MySQLNieuwe map (2)UsbWebserverRootRank.php on line 4
Alvast bedankt
|