Français
  • 3. How to Create A Basic Membership Website System Using PHP and MySQL Tutorial


    Added on Monday 26 April 2010 15:45:28
    by flashbuilding
    19226 Views
    4.8 / 5
    12345
    56 rates
    Send this video to your friends
    Get embed code of video

    Source File Package Link:
    http://www.developphp.com/view.php?tid=764

    How to build or create a basic member system for your websites part 3.

    Lesson by Adam @ http://www.developphp.com



    facebook
  • Write your comment here...
  • PivotyPivoty

    Hey I get this error when clicking on the login page: Notice: Undefined index: email in C:\xampp\htdocs\files\website\login.php on line 19 Can someone please help me resolve this? Thanks!
    Thursday 26 January 2012 23:53:59
  • colourelectric

    Another great video tutorial from Adam @ Develop PHP and I've got everything working just great but the one thing that doesn't seem to work is the users profile pic. I've uploaded a photo to a mocked up account just to test the system and it has uploaded ok as I can see the .jpg sitting there on the server via my ftp client, but when I log in and load member_profile.php no image appears and just get the box with a ? in. Anyone else had this problem?
    Wednesday 18 January 2012 17:29:44
  • Royalllllll

    @Royalllllll unsecure*
    Saturday 07 January 2012 12:57:47
  • Royalllllll

    Well image posting script is really unsecyre..because if i will go tu users id catalog,for example if users id is 52 and his photo catalog will be 52 and then i go to pictures/52 and i will see all users photos,because folder 52 is not secure..without any index file..that secure issue we can sort if automaticly will be created index file in each new photo folder..
    Saturday 07 January 2012 12:56:40
  • jn10987654321

    Why do i get undefined variables in registration page?
    Thursday 05 January 2012 04:05:53
  • jn10987654321

    can somebody help. me why do i get undefined variable: for the username,country,state,city,accounttype and email. Sorry i can't fix it. im a beginner. I appriciate to anyone who knows how to fix it.
    Wednesday 04 January 2012 21:23:41
  • stephensansatymail

    Found it!! Line 22 looks for the 'emailactivated' field in the db and I had named the field 'emailactivation'. A simple edit in phpMyadmin did the trick!
    Wednesday 28 December 2011 21:47:56
  • stephensansatymail

    Hey can anyone help me with this error message I get when I click on "Activate Now" in the email: ACTIVATION RESULTS Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /data/26/2/131/139/2620302/user/2874549/htdocs/activation001.php on line 22 Your account could not be activated!
    Wednesday 28 December 2011 01:39:28
  • TheHTMLCode

    @ShazTheKing786 for starters why have you got ereg_replace? that should be preg_replace 2) have you checked your SQL connection, does it actually work? 3) can I see your HTML code? you said you were having problems with the form, this does not look like a problemed script to me
    Monday 12 December 2011 11:25:26
  • ShazTheKing786

    here is the code: include_once "storescripts/connect_to_mysql.php"; // Get the member id from the URL variable $id = $_REQUEST['id']; $id = ereg_replace("[^A-Za-z0-9]", "", $id); // filter everything but numbers for security if (!$id) { echo "Missing Data to Run"; exit(); } // Update the database field named 'email_activated' to 1 $sql = mysql_query("UPDATE members SET emailactivated='1' WHERE id='$id'"); // Check the database to see if all is right now
    Monday 12 December 2011 04:46:06
  • TheHTMLCode

    @mrtjs123 check what action you have assigned to your form, upon clicking a submit button it will use the forms action as its processing parameter, its likely you are linking to the page you dont need
    Friday 09 December 2011 13:09:56
  • TheHTMLCode

    @ShazTheKing786 hey can you send me your script, this error will have been pre defined by you somewhere in your script, the elseif statement is counting if the doublecheck variable is greater than 0,
    Friday 09 December 2011 13:06:31
  • ShazTheKing786

    HI CAN YOU PLZ HELP!!! when an activation link is send to me in email and i click on it i get this error and it does not activate my email: ACTIVATION RESULTS Your account could not be activated! "; } elseif ($doublecheck > 0) { // Print a success message to the browser cuz all is good // And supply the user with a link to your log in page, please alter that link line print " Your account has been activated! Click Here to log in now. "; } ?> PLZ HELP :)
    Thursday 08 December 2011 05:40:16
  • TheHTMLCode

    @ExposedHD Hi, I am going to be publishing a series soon on how to create an aestheticly pleasing site with just CSS and HTML over the next few weeks !:)
    Wednesday 30 November 2011 12:17:39
  • TheHTMLCode

    @7144008864 without seeing your source code I can't help you, can you inbox me it?
    Wednesday 30 November 2011 12:17:01
  • TheHTMLCode

    @XXTeamCORE can you send me your source code please? This error normally occurs when you havn't defined your variable properly (maybe you missed a semi colon) or you have not used the variable in the correct location...an index error wont stop the programme from working but it can cause you problems as it changes the behavior of the script. Add me on skype if you need and I'll see if i can solve it....alexsims1992
    Wednesday 30 November 2011 12:16:30
  • XXTeamCORE

    "Notice: Undefined index: email in C:\xampp\htdocs\login.php on line 2" is what it says whenever I test out the login page. Plz help
    Saturday 05 November 2011 14:44:37
  • 7144008864

    Hey, can some one help me how to avoid this error message? it's making crazy.. Connected successfully Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb/web093/b935/ipg.ocdeejaycom/dj/php_scripts/member_system/connect_to_mysql.php:6) in /hermes/bosweb/web093/b935/ipg.ocdeejaycom/dj/php_scripts/member_system/login.php on line 33
    Sunday 02 October 2011 19:20:25
  • mrtjs123

    hey adam your vids are awesome but i have one problem when i click the submit button on the join form on my website it goes to a page that says Unknown column 'password' in 'field list' plz help me!
    Sunday 02 October 2011 12:32:33
  • MrC0MPUT3R

    Where can I get this source code now? The link is broken
    Friday 23 September 2011 01:31:23
  • britishgoose01

    wheres part 4????
    Sunday 18 September 2011 09:41:05
  • ExposedHD

    Well I was able to get it working very easiely :) But I would love to see a tutorial on how to make it more advanced. Like a better look/effects.
    Friday 09 September 2011 03:20:30
ADVERTISEMENT
Supplements
Social Network
Tag cloud