Category Archives: Uncategorized

Learn PHP Basics – For Freshers and Experienced

Database Connection Connect mysqli with php using Object-Oriented Way. $host = “localhost”; $username = “root”; $password = “”; $conn = new mysqli($host, $username, $password); //connect to server if ($conn->connect_error) { die(“Connection failed: ” . $conn->connect_error); } echo “Connected successfully”; Connect mysqli with php using Procedural Way. $host = “localhost”; $username

« Older Entries Recent Entries »