Jump to content


Photo

connection of php script in dreamweaver to mysql


  • Please log in to reply
1 reply to this topic

#1 get2me

get2me
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 29 August 2006 - 11:39 AM

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.

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 29 August 2006 - 12:59 PM

TO connect to mysql use mysql_connect:
// 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');





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users