Zaggyzigzig
plx itens menz
I am using Znote ACC
This is my online list from my www file in uniserver, Do i need to execute some type of sql?
Do I need to create an sql insert for phpmyadmin? something like~~
CREATE TABLE IF NOT EXISTS `onlinel_list` (
`player_id` int(11) NOT NULL, <------ Something like that? What would i post ito create an sql for this table?
This is my online list from my www file in uniserver, Do i need to execute some type of sql?
Do I need to create an sql insert for phpmyadmin? something like~~
CREATE TABLE IF NOT EXISTS `onlinel_list` (
`player_id` int(11) NOT NULL, <------ Something like that? What would i post ito create an sql for this table?
PHP:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
<h1>Players Online</h1>
<?php
$array = online_list();
if ($array) {
?>
<?php if (user_count_online() == 1) {
echo "<i><b>Total of "; echo user_count_online(); echo " player are currently playing at our server.</b></i><br>";
}
else {
echo "<i><b>Total of "; echo user_count_online(); echo " players are currently playing at our server.</b></i><br>";
}
?>
<table id="onlinelistTable" class="table table-striped table-hover">
<tr class="yellow">
<th>Name:</th>
<th>Level:</th>
<th>Vocation:</th>
</tr>
<?php
foreach ($array as $value) {
echo '<tr>';
echo '<td><a href="characterprofile.php?name='. $value['name'] .'">'. $value['name'] .'</a></td>';
echo '<td>'. $value['level'] .'</td>';
echo '<td>'. vocation_id_to_name($value['vocation']) .'</td>';
echo '</tr>';
}
?>
</table>
<?php
} else {
echo '<i><b>Currently Fixing... Bug says 0 players online but it IS ONLINE!.</i></b>';
}
?>
<?php include 'layout/overall/footer.php'; ?>
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
<h1>Players Online</h1>
<?php
$array = online_list();
if ($array) {
?>
<?php if (user_count_online() == 1) {
echo "<i><b>Total of "; echo user_count_online(); echo " player are currently playing at our server.</b></i><br>";
}
else {
echo "<i><b>Total of "; echo user_count_online(); echo " players are currently playing at our server.</b></i><br>";
}
?>
<table id="onlinelistTable" class="table table-striped table-hover">
<tr class="yellow">
<th>Name:</th>
<th>Level:</th>
<th>Vocation:</th>
</tr>
<?php
foreach ($array as $value) {
echo '<tr>';
echo '<td><a href="characterprofile.php?name='. $value['name'] .'">'. $value['name'] .'</a></td>';
echo '<td>'. $value['level'] .'</td>';
echo '<td>'. vocation_id_to_name($value['vocation']) .'</td>';
echo '</tr>';
}
?>
</table>
<?php
} else {
echo '<i><b>Currently Fixing... Bug says 0 players online but it IS ONLINE!.</i></b>';
}
?>
<?php include 'layout/overall/footer.php'; ?>