How to make Connection mysql with PHP : Tech Guru India How to make Connection mysql with PHP :: Tech Guru India

How to make Connection mysql with PHP




$con = mysql_connect("localhost","root","12345");

if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("database_name", $con);

In PHP, "." (DOT) is the concatenating operator, which is used to join two strings.

For example;

$a = "abc";
$b = "def";
$c = $a.$b;

then $c will contain "abcdef"




connecting php mysql
php training
php job
jobs php
php development
post php
php echo
php variable
php redirect
php fopen
php variables
php foreach
php programmer
php programmers
connecting using
php hosting
php web hosting


We will send you more information, Enter your email address:


Related Posts with Thumbnails

Share/Save/Bookmark

0 comments:

Post a Comment