Parašė Narysx· 2009 Gru. 28 18:12:50
#1
<?php
require_once "maincore.php";
require_once THEMES."templates/header.php";
if(isset($user_id)) {
$where = $_GET['user_id'] ? $_GET['user_id'] : 0;
$where = isNum($where) ? $where : 0;
$query = dbquery("SELECT * FROM ".DB_USERS." WHERE user_id = '$where'");
$i = 0;
while ($kkk = dbarray($query)) {
$i++;
$idd = $kkk['user_id'];
$namee = $kkk['user_name'];
}
opentable("$namee info");
echo "$namee aaaaaaaaaa";
closetable();
} else {
opentable("Komandos");
echo "Susitarkuok";
closetable();
}
require_once THEMES."templates/footer.php";
?>
einu failas.php?user_id=1 ir rašo susitarkuok, nors tūrėtų atvaizduot userio info. :?