Question: Write a delete function to the post.. which will deleted the post that is been added in the database. Below code is the auth.php $mysqli
Write a delete function to the post.. which will deleted the post that is been added in the database.
Below code is the auth.php
$mysqli = new mysqli('localhost', 'root', 'seedubuntu', 'root');
if($mysqli->connect_error){ die(' error: ' . $mysqli->connect_error); } function checklogin($username,$password){ $sql = "SELECT * FROM users WHERE username='$username' AND password=password('$password');"; echo "sql= $sql"; global $mysqli; $result = $mysqli->query($sql); if($result->num_rows ==1 ) return TRUE; } return FALSE;
}

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
