PHP Codeigniter MySQL Java Script JQuery Codding
Php code, Database Connections with Mysql, Java Script , Jquery, Codeigniter
Pages
Home
Codeigniter
Models
Jquery
Thursday, 4 July 2013
Syntax of Data Base connection using mysql in php
<?php
$con=mysql_connect("servername","username","password");
// ex: $con=mysql_connect("localhost","root","");
$db=mysql_select_db("database name");
$sql="sql query";
$query=mysql_query($sql);
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment