The problem with getting the id of an authorized user, with getting moneysm, and with other aspects, has already tried all the tips, sql requests have changed, just not what! I ask you to help. username receives, but not id, not vkid, not moneysm not getting ...
<?php session_start(); require('connect.php'); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <?php if(isset($_POST['username']) and isset($_POST['password'])){ $username = $_POST['username']; $vkid = $_POST['vkid']; $password = $_POST['password']; $query= "SELECT * FROM users WHERE username='$username' and password='$password' "; echo Var_dump($query); $result= mysqli_query($mysqli,$query) or die (msqli_error($msqli)); $count = mysqli_num_rows($result); if ($count ==1){ $_SESSION['username'] = $username; } else { $fmsg = "ERROR"; } } if (isset($_SESSION['username'])) { $username= $_SESSION['username']; echo '<style> .Aut {color:black; display:none;} </style>'; echo "<center><div class='hello'><p>Здраствуйте сэр ".$username." Добро пожаловать! <a href='logout.php' class='logout'> Выход</a></p></div></center>"; $sql = mysql_query($query); $myrow = mysql_fetch_array($sql); $id = $myrow['vkid']; echo "<style>.farm {color:white; display:block; width: 100%;} </style>"; echo "<p>Внимание! Рекламный блок может быть скрыт от яндекс браузера и яндекса!</p>"; echo "<p>Пожалуйста, отключите AdBlock!</p>"; echo "<p>Ваш vkid: ".$id." </p>"; } ?> </body> </html>