How To Connect To Database, Via Php |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Zymic Free Web Hosting Zymic Free Web Hosting - General Discussion & Help |
||
![]() |
How To Connect To Database, Via Php |
||
Jun 16 2009, 04:08 AM
Post
#1
|
|
![]() Newbie ![]() Group: Members Posts: 11 Joined: 16-June 09 From: Cairns, Australia Member No.: 99,735 |
CODE <?php $connection_details = mysql_connect( mysql_select_db("db", $connection_details); ?> What is the connection details, I.E the hostname, so I can connect to my database to my website. Thanks in advance. Jackosticks |
|
|
Jun 16 2009, 04:10 AM
Post
#2
|
|
![]() Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrators Posts: 2,831 Joined: 11-March 07 From: UK Member No.: 9 |
Hostname is localhost, for the other details you need to create your database and user, then assign it privileges here: http://www.uuuq.com/user_db.jsp
|
|
|
Jun 16 2009, 04:12 AM
Post
#3
|
|
![]() Newbie ![]() Group: Members Posts: 11 Joined: 16-June 09 From: Cairns, Australia Member No.: 99,735 |
Hostname is localhost, for the other details you need to create your database and user, then assign it privileges here: http://www.uuuq.com/user_db.jsp Thanks for the speedy reply, silly question : ( .... anyway, having difficulty logging into PHPMyAdmin, it is timing out.... So I either have to inject SQL through PHP... or wait for another time...... If there are any remedies, I would be greatly appreciative. Jackosticks. |
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 25th May 2013 - 03:11 AM |