if (mysql_num_rows($result) > 0) {
while ($row = mysql_fetch_assoc($result)) {
$sqlsteamid=$row["steam_id"];
echo $sqlsteamid;
}
}
select `email` from `tName` where 1;
<a href="/public/doc/emails.txt" download>качаем</a>
table: student_group
+-------------+-----------+
| student_id | group_id |
+-------------+-----------+
| 1 | 4 |
+-------------+-----------+
| 1 | 5 |
+-------------+-----------+
| 1 | 10 |
+-------------+-----------+
| 1 | 99 |
+-------------+-----------+
| 2 | 8 |
+-------------+-----------+
| 2 | 30 |
+-------------+-----------+
if($_SESSION["count"] > 9) {
echo "пошёл вон от сюда";
exit;
}
$_SESSION["count"]++;
$result = mysql_query("SELECT `status` FROM `page` WHERE `id` = '1';");
if($result['status'] == "off") {
echo "пошёл вон от сюда";
exit;
} else if($GLOBALS["count"] > 9) {
mysql_query("UPDATE `page` SET `status` = 'off' WHERE `id` = '1';");
unset($GLOBALS["count"]);
echo "пошёл вон от сюда";
exit;
}
$GLOBALS["count"]++;