PHP Final
PHP Final
die("Unable to connect".mysqli_connect_error()); echo "The table was not created because of this
erroe :".mysqli_error($conn);
}
}
else{
echo"Connected successfully"; ?>
} </html>
Before
After
Inserting data into MySql
$sql ="INSERT INTO `TexasStudent` (`Sno.`, `Name`,
<?php `Address`, `Grade`) VALUES ('2', 'harry', 'Kathmandu',
$servername = "localhost"; '12')";