Select Menu

Ads

Design

Technology

Circle Gallery

Shooting

Racing

News

Bottom

» »Unlabelled » PHP Connect to the MySQL Server

Step1:open xampp control panel then start Apache and Mysql
Step2:open any Browser to type address localhost and see your xampp server page on your browser  then you decide the server is running
Step3:type the below coding in your dreamwevaer

<?php
$db_host="localhost";
$db_username="root";
$db_pass=" ";
$db_name="demo";

@mysql_connect("$db_host","$db_username","$db_pass") or die ("could not connect

to mysql");
@mysql_select_db("$db_name") or die ("No Database");

echo "connection successfuly";


?>
step4:and then save your filename.php and run the file like localhost/filename.php

About dhamodaran

WePress Theme is officially developed by Templatezy Team. We published High quality Blogger Templates with Awesome Design for blogspot lovers.The very first Blogger Templates Company where you will find Responsive Design Templates.
«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply