HI
I AM SUJIT MANDAL NEW MEMBAR OF THIS FORUM.
AS I AM BEGINNER IN PHP THATS WHY I AM ASKING YOU ALL GIVE THE CODE OF PHP-MYSQL CONNECTIVITY.TELL ME THE PROCESS ALSO..PLZ HELP ME !! ITS URGENT.
mail me at ....
sujit.tinku@gamil.com
PLZZ HELP ME!! IN PHP MYSQL CONNECTIVITY
Moderator: General Moderators
-
sujit.tinku
- Forum Newbie
- Posts: 2
- Joined: Sat Jul 16, 2005 4:00 pm
- Location: India
- Contact:
look at the mysql functions in the manual:
more specifically mysql_connect() and mysql_select_db().
ex:
e specifically mysql_connect() and mysql_select_db().
ex:
functions in the manual:
more specifically mysql_connect() and mysql_select_db().
ex:
mysql_connect]mysql_connect()[/url] and mysql_select_db().
ex:
nect()[/url] and mysql_select_db().
ex:
]
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_selecuote;;
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());
the manual:
more specifically mysql_connect() and mysql_select_db().
ex:
= "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error()ost,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());
more specifically mysql_connect() and mysql_select_db().
ex:
Code: Select all
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());ex:
Code: Select all
$host = "127.0.0.1";
$user = "bob"e;;
$pass = &ysql_connect]mysql_connect()[/url] and [url=http://www.php.net/mysql_select_db]mysql_select_db()[/url].
ex:Code: Select all
$host = "e;127.0.0.1"e;;
$user = "e;bob"e;;
$pass = "e;bobspass"e;;
$db = "e;database";
mysql_connect($host,$user,$pass)
or die(mysql_error());w.php.net/mysql_select_db]mysql_select_db()[/url].
ex:Code: Select all
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database"e] and [url=http://www.php.net/mysql_select_db]mysql_select_db()[/url].
ex:Code: Select all
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());more specifically mysql_connect() and mysql_select_db().
ex:
Code: Select all
$host = "e;127.0.0.1"e;;
$user = "e;bob"e;;
$pass = "e;bobspass"e;;
$db = "e;database"e;;
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_sefunctions in the manual:
more specifically [url=http://www.php.net/mysql_connect]mysql_connect()[/url] and [url=http://www.php.net/mysql_select_db]mysql_select_db()[/url].
ex:Code: Select all
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());ex:
Code: Select all
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());ex:
Code: Select all
$host = "e;127.0.0.1"e;;
$user = "e;bob"e;;
$pass = "e;bobspass"e;;
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());
ically [url=http://www.php.net/mysql_connect]mysql_connect()[/url] and [url=http://www.php.net/mysql_select_db]mysql_select_db()[/url].
ex:Code: Select all
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_selecuote;;
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());
the manual:
more specifically mysql_connect() and mysql_select_db().
ex:
Code: Select all
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error()ost,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());
$host = "127.0.0.1";
$user = "bob";
$pass = "bobspass";
$db = "database";
mysql_connect($host,$user,$pass)
or die(mysql_error());
mysql_select_db($db)
or die(mysql_error());
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: