
Kod
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 6 in reward_history.php on line 12
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 7 in reward_history.php on line 13
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 8 in reward_history.php on line 14
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 7 in reward_history.php on line 13
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 8 in reward_history.php on line 14
<?php $usernameb = $_SESSION['username']; $query1 = "SELECT username FROM history ORDER BY id"; $query2 = "SELECT reward FROM history WHERE username='$usernameb' ORDER BY id"; $query3 = "SELECT date FROM history WHERE username='$usernameb' ORDER BY date DESC"; $query4 = "SELECT status FROM history WHERE username='$usernameb' ORDER BY id"; ?> <table border="1" cellpadding="10"> <tr><td><strong>Username</strong></td><td><strong>Reward</strong></td><td><strong>Date</strong></td><td><strong>Status</strong></td></tr> <?php $i=0; if($num>0){ while ($i < $num) { $i++; } } ?> </table>