Basic Login and logout using php
In this article going to discuss login and logout using php .The first read previous article https://blog.pheonixsolutions.com/basic-insert-delete-update-database-image-upload-using-php/. LOGIN.PHP $query=mysql_connect(“localhost”,”root”,””); mysql_select_db(“demo”,$query); session_start(); if(isset($_POST[‘send’])) { $name=$_POST[‘name’]; $password=$_POST[‘password’]; if($name!=”” && $password!=””) { $s=mysql_query(“select *from reg where name = ‘$name’ AND password = ‘$password'”); $a=mysql_fetch_array($s); $count=mysql_num_rows($s); if($count==0) { echo “user does not exist”; } else… Continue Reading Basic Login and logout using php