Jump to content

Archived

This topic is now archived and is closed to further replies.

get2me

connection of php script in dreamweaver to mysql

Recommended Posts

please help me out with this
i am using netserver
which has apache and mysql server
and my system is the server ie localhost
now i have make connection to the nysql server.

Share this post


Link to post
Share on other sites
TO connect to mysql use mysql_connect:
[code=php:0]// this connects you to the mysql server
mysql_conncet('localhost', 'mysql_username', 'password_for_mysql_username');

// select the database to use
mysql_select_db('database_name_here');[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.