php website help

Discussion in 'PHP' started by phpwreker, Dec 5, 2011.

  1. #1
    i was trying to setup a website for college ..

    i was trying it on my pc with wamp server

    downloaded the zip file from this site

    http://www.html-form-guide.com/php-form/php-registration-form.html

    copy pasted it in "C:\wamp\www"

    now it looks like this


    http://i44.tinypic.com/15nlzzl.jpg


    http://i40.tinypic.com/oje8mr.jpg





    but it shows this error now

    http://i41.tinypic.com/6z6dzn.jpg


    where have i gone wrong ..

    i am supposed to add an open source php shopping cart with it too somehow


    please help
     

    Attached Files:

    phpwreker, Dec 5, 2011 IP
  2. ATmega Media

    ATmega Media Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check your MySQL server configuration ( hostname, username and password ).
     
    ATmega Media, Dec 5, 2011 IP
  3. phpwreker

    phpwreker Greenhorn

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    C:\wamp\www\include

    in that folder there is a file called ..


    membersite_config

    that is the script in it ..

    but i have not created anything like in the script ..do i have to create it myself ..

    25pgt5d.jpg

    ..i am like stuck here
     
    phpwreker, Dec 6, 2011 IP
  4. christytomj

    christytomj Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    In the configuration file, that is membersite_config.php, set the database username to 'root' with no password. This may solve your problem as it is the default setting for MySQL database in a wamp server.

    $fgmembersite->InitDB(/*hostname*/'localhost',
    /*username*/'root',
    /*password*/'',
    /*database name*/'testdb',
    /*table name*/'fgusers6');
     
    christytomj, Dec 7, 2011 IP
  5. Javed iqbal

    Javed iqbal Well-Known Member

    Messages:
    445
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #5
    leave it use xammp why you go old wamp
     
    Javed iqbal, Dec 7, 2011 IP