Saturday 1 August 2015

Database connection

System connection(4database) :
This is what neither many coachings teach you nor any website correctly.

This code is mainly for connecting front
End page to backend (database).

<?php
$cn= mysql_connect ("localhost"," root","")
or die("could not connect ");

Where localhost is server name, root is username, "" is for password.


No comments:

Post a Comment