function logowanie(){ include("php/conn.php"); { require('php/conn.php'); if ($konto!="" and $password!="" or $konto!="" or $password!="") { $zapytanie="SELECT * FROM user WHERE login='$konto' and password ='$password'"; $id=$temp['id']; $ranga=$temp['ograniczenia']; if ($ile==1) { $_SESSION['ranga']=$ranga; $_SESSION['user_id']=$id; $_SESSION['logino']=$konto; <meta http-equiv="refresh" content="0; URL=index.php"> </html>'); } else { } } else { } } echo '<form type="POST"action="index.php"> <i>login</i><input type="text"name="konto" class="input"/> <i>hasło</i><input type="password" name="password"class="input"/> <input type="submit"class="submit" value="zaloguj"/> </form>'; }
Z góry dziękuję za pomoc