SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Sep 2012
    Location
    West Allis, Wisconsin, United States
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't get my login page to work

    4 posts merged into one
    ok I posted another thread on here about just one page.... but there are more than one linking to it and I can't figure out for the life of me where where the problem is... I tried getting support from my host but they said it was a coding problem and that I would have to figure it all out... maybe you guys can help... here's the coding to all the pages associated with my login page... what am I missing?.. and just so you know I replaced sensitive info with a # ...in my files I have the right username, password, database etc. thanks ahead of time..

    This is the connect to my sql page

    Code:
    <?php 
    /* 
    1: "die()" will exit the script and show an error statement if something goes wrong with the "connect" or "select" functions. 
    2: A "mysql_connect()" error usually means your username/password are wrong 
    3: A "mysql_select_db()" error usually means the database does not exist. 
    */ 
    // Place db host name. Sometimes "localhost" but 
    // sometimes looks like this: >> ???mysql??.someserver.net 
    $db_host = "localhost"; 
    // Place the username for the MySQL database here 
    $db_username = "#"; 
    // Place the password for the MySQL database here 
    $db_pass = "#"; 
    // Place the name for the MySQL database here 
    $db_name = "#"; 
    
    // Run the actual connection here 
    mysql_connect("$db_host","$db_username","$db_pass") or die ("could not connect to mysql");
    mysql_select_db("$db_name") or die ("no database"); 
    ?>
    Edit:


    Only code I could find to be restored!

    Spike
    Last edited by spikeZ; Oct 2, 2012 at 23:49. Reason: combine posts with relevant code into one post

  2. #2
    SitePoint Enthusiast Dreeass's Avatar
    Join Date
    Sep 2012
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm on iPod atm, but can you upload the files so I can take a look at it tomorrow and edit it?

  3. #3
    SitePoint Member
    Join Date
    Sep 2012
    Location
    West Allis, Wisconsin, United States
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    upload them to where?

  4. #4
    SitePoint Enthusiast Dreeass's Avatar
    Join Date
    Sep 2012
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DaMighty Optiq View Post
    upload them to where?
    Dropbox, pastie, pastebin, airload, etc.

  5. #5
    SitePoint Member
    Join Date
    Sep 2012
    Location
    West Allis, Wisconsin, United States
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh..... well.... I pasted the coding in here already though.... can't you see them?

  6. #6
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,014
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    Sorry, something went wrong with the merging of the first four posts of this thread and vb isn't allowing me to reverse the changes
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator


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
  •