how to connect from PHP installed in a 32 bit windows machine to a db server

pavan

New member
which is 64 bit and sql is 64? how to connect from PHP installed in a 32 bit windows machine (which is a web server) to a db server which is 64 bit and SQL server is also 64 bit via ODBC
 
I don't think the bit matters its their processing engine that matters and I think the code is the same regardless of version.

<?php
$host="localhost";
$username="root";
$password="";
$db_name="users";
$tbl_name="users table";
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
?>

what db are you using?
 
I don't think the bit matters its their processing engine that matters and I think the code is the same regardless of version.

<?php
$host="localhost";
$username="root";
$password="";
$db_name="users";
$tbl_name="users table";
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
?>

what db are you using?
 
I don't think the bit matters its their processing engine that matters and I think the code is the same regardless of version.

<?php
$host="localhost";
$username="root";
$password="";
$db_name="users";
$tbl_name="users table";
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
?>

what db are you using?
 
I don't think the bit matters its their processing engine that matters and I think the code is the same regardless of version.

<?php
$host="localhost";
$username="root";
$password="";
$db_name="users";
$tbl_name="users table";
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
?>

what db are you using?
 
Back
Top