Help - Search - Members - Calendar
Full Version: How To Connect To Database, Via Php
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
jackosticks
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
Ed
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
jackosticks
QUOTE(Bread @ Jun 16 2009, 04:10 AM) *
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.