•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 425,896 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,912 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 214 | Replies: 2
![]() |
•
•
Join Date: Sep 2007
Posts: 100
Reputation:
Rep Power: 2
Solved Threads: 10
2 ways but I'm not sure if they both refer to the same type of SQL databases. The first one is:
And the second is MySQLI and I think might be as follows:
The first one i think is more common.
php Syntax (Toggle Plain Text)
$linkID = @mysql_connect($dbhost,$accountname,$password) or die("Could not connect to MySQL server"); @mysql_select_db($database) or die("Could not select database");
php Syntax (Toggle Plain Text)
$linkID = @mysqli_connect($dbhost,$accountname,$password,$database) or die("Could not connect to MySQL server"); @mysqli_select_db($linkID,$database) or die("Could not select database");
Signature note:
Do not edit the registry just because someone on the forum says so. Do some research on the internet before editing the registry.
Do not edit the registry just because someone on the forum says so. Do some research on the internet before editing the registry.
http://nl3.php.net/manual/en/function.mysql-connect.php
http://nl3.php.net/manual/en/mysqli-stmt.execute.php
http://nl3.php.net/manual/en/pdo.connections.php
And if PEAR is installed you could use the MDB2 package as well.
http://nl3.php.net/manual/en/mysqli-stmt.execute.php
http://nl3.php.net/manual/en/pdo.connections.php
And if PEAR is installed you could use the MDB2 package as well.
Last edited by pritaeas : Jun 12th, 2008 at 5:36 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- internet connection dissappears every few minutes (Networking Hardware Configuration)
- svchost.exe crash upon dial-up connection (Windows NT / 2000 / XP / 2003)
- Internet Explorer Connection Issue (Web Browsers)
- Connection Problems (Networking Hardware Configuration)
Other Threads in the PHP Forum
- Previous Thread: easyportal cms theme ?
- Next Thread: Need ides for my final year project


Linear Mode