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
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";
?>
$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
No comments