Parašė LukiuzZ· 2009 Rugs. 6 13:09:13
#9
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
$con = mysql_connect("localhost", "root", "") or die("Prisijungimas prie MySQL negalimas! ". mysql_error());
$db = mysql_select_db("serveris", $con);
if(!$db) die("Prisijungimas prie duomenu bazes negalimas! ". mysql_error());
$result = mysql_query("SELECT * FROM nariai");
if(!$result) die(mysql_error());
echo'<table align="center" border="1">
<tr>
<td>ID:</td>
<td>Nick:</td>
<td>Nužudymai:</td>
<td>Mirtys</td>
<td>Pinigai</td>
</tr>'; // sukuriame lentele kuria iscentruojame, ir sukuriame laukelius id, nick, hash, nuzudymai, mirtys, pinigai
while($row = mysql_fetch_assoc($result)) { // sios vietos tiesiog nemoku paaiskinti.. gal atsiras kas gales :)
echo'
<tr>
<td>'.$row['id'].'</td>
<td>'.$row['nick'].'</td>
<td>'.$row['nuzudymai'].'</td>
<td>'.$row['mirtys'].'</td>
<td>'.$row['pinigai'].'$</td>
</tr>';
// cia sulig kiekvienu irasu i musu lentele pridejo po viena irasa su informacija.
}
echo'</table>'; // uzdarom lentele
require_once "side_right.php";
require_once "footer.php";
?>
Redagavo LukiuzZ· 2009 Rugs. 6 13:09:43