Closed Thread
Results 1 to 3 of 3

Thread: How to connect to SQL DB/ Connect failure?

  1. #1
    rajjak10968 is offline x10Hosting Member rajjak10968 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    28

    How to connect to SQL DB/ Connect failure?

    Hey there I'm trying to make a news feature for my site but can't connect to the database. I think I am doing something wrong can someone help me?

    Code:
    mysql_connect("localhost, "legitadm","") or die(mysql_error())
    mysql_select_db("legitadm_news") or die (mysql_error));
    legitadm is my username, news is my database.

    Any help would be greatly appreciated.

  2. #2
    rajjak10968 is offline x10Hosting Member rajjak10968 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    28

    Re: How to connect to SQL DB/ Connect failure?

    Any help at all? please its urgent.

  3. #3
    rajjak10968 is offline x10Hosting Member rajjak10968 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    28

    Re: How to connect to SQL DB/ Connect failure?

    Please anyone?

Closed Thread

Similar Threads

  1. Connect connect to my site with dreamweaver
    By champion036983 in forum Free Hosting
    Replies: 0
    Last Post: 08-11-2011, 10:49 AM
  2. Unable to connect to the database:Could not connect to MySQL
    By edificiozamenhoff78 in forum Free Hosting
    Replies: 3
    Last Post: 06-06-2011, 02:09 PM
  3. Replies: 4
    Last Post: 12-14-2010, 07:20 AM
  4. Replies: 1
    Last Post: 11-12-2010, 05:57 AM
  5. Replies: 1
    Last Post: 02-01-2010, 07:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers