Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion server.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
$edit_state=true;
//connect to db
$db= mysqli_connect('localhost','root','','crud');
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);

echo "Connected successfully";
}
//enter into db
if(isset($_POST['submit']))
{
Expand Down Expand Up @@ -44,4 +50,4 @@

//retrive from db
$results= mysqli_query($db, "SELECT * FROM information");
?>
?>