Share it

Bookmark and Share

Translate

Thursday, June 7, 2012

0 How to connect database in PHP

PHP is a scripting language and has several advantages. Programmers can easily connect database to php using  simple sql commands.
 Things which are need to connect database to PHP are
1.Server Name 2. Server  username.3. Server  Password 4.Database name
 Eg:  $conn=mysql_connect("localhost","root","password");
       mysql_select_db("db_name",$conn);

0 comments:

Post a Comment

Thanks for your valuable Comment

 

TechnoTipworld- Tips,Tricks,Technology Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates