Parašė Narysx· 2009 Sau. 21 20:01:36
#39
Limit iš vis nėra uždėtas. ?| Va visas kodas:
<?php
require_once "../../maincore.php";
require_once "../../subheader.php";
require_once "../../side_left.php";
if(isset($date)) {
$where = $_GET['date'] ? $_GET['date'] : 0;
$query = dbquery("SELECT * FROM fusion_rezu_system WHERE date = '$where'");
$data = dbarray($query);
$ho_team = $data['ho_team'];
$aw_team = $data['aw_team'];
$ho_score = $data['ho_score'];
$aw_score = $data['aw_score'];
echo "kada : $ho_team $aw_team";
} else {
echo "<center><b>Rezultatai:</b></center><br>";
$query = dbquery("SELECT * FROM fusion_rezu_system");
while($data = dbarray($query)) {
$kada = $data['date'];
echo "<center><a href='rezultatai.php?date=$kada'>$kada</a></center>";
}
}
require_once "../../side_right.php";
require_once "../../footer.php";
?>
What's wrong?