Web Analytics Made Easy -
StatCounter phpmyadmin - CodingForum

Announcement

Collapse
No announcement yet.

phpmyadmin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • phpmyadmin

    Hi, I'm doing a login/register form and i've created a database in mysql with Phpmyadmin. Well this database i've created doesn't have pass or username and it calls golo.

    I have this code:

    Code:
    <?
    
    /**
     * Connect to the mysql database.
     */
    $conn = mysql_connect("localhost", "your_username", "your_password") or die(mysql_error());
    mysql_select_db('your_database', $conn) or die(mysql_error());
    
    ?>
    what do I have to change? thanks

  • #2
    if there is no username then dont fill in a username or password....

    however mysql generally has a default username installed... i think it is "admin" and the password is blank or "".... dont hold me ot that though... go read the install instructions for mysql it tells you in there...

    Comment


    • #3
      ok...thanks...i got it.

      Comment


      • #4
        no problem...

        you really do need to set up a username and pass... before some jacka$$ decides to cause problems... do not use common logins for the web database .. .use a series of numbers and letters for both the username and pass...

        aka dont do this

        username: "devil_online"
        password: "LetMeInPlease"
        Last edited by phoztech; Feb 24, 2004, 09:55 PM.

        Comment

        Working...
        X