Файл: public_html/history.php
Строк: 37
<?
session_start();
if(!(isset($_SESSION["username"]) && isset($_SESSION["password"])))
{
?>
<script type="text/javascript">
location.replace("login.php");
</script>
<noscript>
<meta http-equiv="refresh" content="0; url=login.php">
</noscript>
<?
exit();
}
include('header.php'); ?>
<h3>.::Ваша история::.</h3>
<br>
<font-size: 16px>
В списке отображаются последние 20 выплат!!!
</font>
<br><br>
<div id="tables">
<table align="center" width="100%" cellspacing="0" cellpadding="0">
<tr>
<th class="top"><b>
Дата
</b></th>
<th class="top"><b>
Сумма
</b></th>
<th class="top"><b>
Состояние
</b></th>
</tr>
<?
$lole=$_SESSION["username"];
require('config.php');
$tabla = mysql_query("SELECT * FROM tb_payme where username='$lole' ORDER BY id DESC limit 20");
while ($row = mysql_fetch_array($tabla)) {
echo "<tr><td align='center'>";
echo " ";
echo "</td><td align='center'>";
echo $row["money"];
echo "</td><td align='center'>";
echo "в процесе";
echo "</td></tr>";
}
$lole=$_SESSION["username"];
$tabla = mysql_query("SELECT * FROM tb_history where user='$lole' ORDER BY id DESC limit 20");
while ($row = mysql_fetch_array($tabla)) {
echo "<tr><td align='center'>";
echo $row["date"];
echo "</td><td align='center'>";
echo $row["amount"];
echo "</td><td align='center'>";
echo $row["status"];
echo "</td></tr>";
}
echo "</table>";
?>
</div>
<!--footer starts here-->
<? include('footer.php'); ?>