• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[PHP] Showing Namelock.

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Hi there, well... There is a table called player_namelocks with the columns player_id, name, new_name, date... I was thinking how about a php for gesior that show how has changed his name and to which one?

Anyone?
 
PHP:
$limit=50;
$a = $SQL->query("select * from player_namelocks DESC date LIMIT ".$limit.";")->fetchAll();
echo("<table><tr><td>Old Name</td><td>New Name</td></tr>
foreach($a as $each) do
echo("<tr><td>".$each["name"]."</td><td>".$each["new_name"]."</td></tr>");
echo("</table>");
 
Parse error: syntax error, unexpected '>' in D:\mtibia\xampp\htdocs\namelocks.php on line 7

Line 7: echo("<tr><td>".$each["name"]."</td><td>".$each["new_name"]."</td></tr>");

PHP:
<?PHP

$limit=50;
$a = $SQL->query("select * from player_namelocks DESC date LIMIT ".$limit.";")->fetchAll();
echo("<table><tr><td>Old Name</td><td>New Name</td></tr>
foreach($a as $each) do
echo("<tr><td>".$each["name"]."</td><td>".$each["new_name"]."</td></tr>");
echo("</table>");  

?>
 
Back
Top