Jump to content


Mysql error


3 replies to this topic

#1 azal

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 17 March 2008 - 10:05 AM

Hi
I have created a database then user & pass then added priveleges to that database in cPanel.After that i got this error.Please help me.


Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:hummco_invision:localhost","hu mmco_hummania","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "hummco_hummania", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("hummco_invision");

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 17 March 2008 - 04:11 PM

Thats not an error. Those are instructions on how to go about connecting to your database. One for Perl, one for PHP.

#3 azal

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 18 March 2008 - 01:22 AM

Then what should i do now?
Could you help me please....

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 18 March 2008 - 04:09 PM

http://www.pixel2life.com/tutorials/php_co...ql_integration/
http://www.pixel2life.com/tutorials/perl/d...se_integration/
http://www.pixel2lif...utorials/mysql/

Edited by rc69, 18 March 2008 - 04:10 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users