$_SESSION['']
<?php require('congig/database.php'); if(isset($_POST['submit'])){ $email = $_POST['email']; $password = $_POST['password']; $query = "select * from database.users WHERE email='$email' AND password= '$password' " ; $query_run = mysqli_query($db,$query) ; if(mysqli_num_rows($query_run)>0){ function show_records($db){ $email = $_POST['email']; $q = "select*from database.users WHERE email='$email'"; $r = mysqli_query($db,$q); if($r){ echo '<h1>Les infos de la table users</h1>'; while($row = mysqli_fetch_array($r,MYSQLI_ASSOC)){ header('location:profile.php?u='.$row['username']); } }else{ echo '<p>'.mysqli_error($dbbc). '</p>'; } } show_records($dbbc); mysqli_close($dbbc); }else{ echo 'Not connected'; } } ?>
<?php require('config/database.php'); # What goes here??? ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)