Help - Search - Members - Calendar
Full Version: Connecting To Db With Dreamweaver 8
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
Saparko.com
Hi, I really love zymic.com' free hosting.
But I got an izzue.
1.) Please see the following informations if I filled it right to connect to the Database that I set up in PHPMyAdmin.
First, look at some simple information on my account.

[color=#00FF00]
DBUsername:abccc
DBPassword:******

ACUsername:qqqqq
ACPassword:***

FTPUsername:wwww
FTPPassword:*****


How do I fill in the chart?
, if dreaweaver can not finish this task, please give me some other ways for me yo let my web to connect to the Database.
NaRzY
You cannot connect remotely to the MySQL. PHPMyAdmin is the only option.
Saparko.com
QUOTE(NaRzY @ Oct 17 2009, 04:07 PM) *
You cannot connect remotely to the MySQL. PHPMyAdmin is the only option.



Then how do I let my php site to connect to the DataBase with PHPMyAdmin, (My site is a PHP site)

(Building a Search Engine into my website.)
NaRzY
To connect to MySQL and an active database, use the following code:
CODE
<?php
mysql_connect("localhost", "db_user", "db_user_password") or die(mysql_error()); //change creditials to that of your database and user
echo "Connected to MySQL<br />"; //print a success message if correctly connected to MySQL
mysql_select_db("db_name") or die(mysql_error()); //change db_name to the name of your database
echo "Connected to Database"; //print a success message if correctly connected to database
?>
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-2009 Invision Power Services, Inc.