|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here! |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi All,
This seems to be a simple question, but I cannot find the answer after looking on google and yahoo search. Most of php scripts that use mysql database use localhost as their server. If my database is on other server, can I access the database using php scripts? How? Thanks in advance for any info. Regards, Sjarief |
|
||||
|
The PHP mysql_connect() command should cover everything for you - just include the domain name or IP address of your MySQL server and you're set.
Check out the PHP mysql_connect() Manual for detailed information and code samples.
__________________
Dan LeFree | Product Manager (Linux VPS Hosting) | Owner/Operator (Web development, marketing) |
|
||||
|
Where it says 'localhost' replace it with 'www.yourcompany.com' or the 'IP address' of the MySQL host computer.
Good look. Dreamweaver handles PHP connections well. (Although it is a bit meagre on other controls.)
__________________
Government without personal responsibility is evil--- http://www.node-net.com/ |
|
|||
|
Quote:
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |