result db- query select from where reg_op Array reglist _SESSION nick

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
$result = $db->query("select * from ?t where `reg_op`=?", Array("reglist", $_SESSION["nick"]), "iassoc");
if(sizeOf($result) > 0){
echo "<p>Приглашенные тобой пользователи:</p>";
addComma = false;
foreach($result as $row){
if ( addComma ) { echo ", " } else { addComma = true };
echo $row["nick"].", ";
}
}