Results 1 to 4 of 4

Thread: Can't Connect to MySQL

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2005
    Posts
    11

    Default Can't Connect to MySQL

    Is there a reason why can't connect to the MySQL database. Here are the strings im using:

    <?php
    mysql_connect("localhost", "username", "password");
    ?>

    I put my username and password in when im working with it, I dont wanna tell anyone my Password on here thats why I didnt put it in if youre wondering.:D

    Any help would be greatly appreciated.

    BWIAva

  2. #2

    Default

    http://hotsql.com/ for free out site

    $dbhost = "mysqla.hotsql.com";
    $dbuname = "user db";
    $dbpass = "user pass";
    $dbname = "name db";

  3. #3
    Join Date
    Jan 2005
    Posts
    11

    Default

    Okay Im connected to the MySQL server. The database is working. I created tables within MySQL Manager>PHPMYADMIN. How do I get that info into the PHP???

    BWIAva

  4. #4
    Join Date
    Dec 2004
    Posts
    117

    Default

    Are you trying to make a script or run a script? If you are trying to run a script, then once you configure it you should be fine. You shouldn't need to change any PHP coding.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •