Header Ads



One line Database connection in PHP here is the example kindly find it below-



Create connection page and include all pages where Database connection required-
<?php include 'connection.php'; ?>
        

  
connection.php

<?php

$link = new mysqli("localhost", "username", "password", "Db_name", "3306");
if($link->connect_errno)
{
    print "error";
}

?>

So lets Enjoy and get like this update keep in touch with us- Thanking You.

1 comment:

  1. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

    IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

    corporate training in chennai corporate training in chennai

    corporate training companies in india corporate training companies in india

    corporate training companies in chennai corporate training companies in chennai

    I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai Project Centers in Chennai

    ReplyDelete