session_start(); $login = $_SESSION['login']; include "conf.php"; $conn = @mysql_connect("$base_name","$base_user","$base_pass"); !@mysql_select_db("$db_name",$conn); mysql_query("SET NAMES cp1251"); $sql = mysql_query("SELECT * FROM characters WHERE login='$login'"); while ($res = mysql_fetch_array($sql)){ $money = $res['money']; } $sql2 = mysql_query("UPDATE characters SET money=money-1 WHERE login='$login'"); $num = rand(0, 9999); $insert = mysql_query("INSERT INTO lotto(name, number) VALUES('$login','$num')"); $infond = mysql_query("UPDATE lotto_fond SET fond=fond+1"); ?>
|
   print "Главный холл"; ?> |
Билет куплен Ваш номер print "$num"; ?> |