Search the Community
Showing results for tags 'membership'.
-
Hello users: I am exploring the delightful world of PHP for web applications. I am in the stage where I need to use SESSIONS and COOKIES and MYSQL for a user/membership/profile structure. I understand most of the grammar behind PHP and am excited to apply this in application. I am searching for recommendations and comments about using: 1. COOKIES 2. SESSIONS 3. MYSQL/SQL Almost every website has an authentication mechanism, profile, and use information. My website required this similar structure, but I have been having some problems completing all of the technical steps for production. If anyone has code samples or places where I can review code on this topic, that would be wonderful. I am specifically searching for more advanced topics in these area for general robustness. Please kindly send me a message or respond to this post. Regards, Diamond
-
I know nothing of PHP coding and have bought a php membership program called aMember. All I am trying to do is get each member's name to display on the top of each page. The company says they use something called Am Lite in conjunction with their php code to call up the member name. they gave me the folling instructions: Here is example of usage <?php // it should be first line on your page require_once '/home/myusername/public_html/amember/library/Am/Lite.php'; ?> ...your code... <?php if (Am_Lite::getInstance()->isLoggedIn()) : ?> Welcome <?= htmlspecialchars(Am_Lite::getInstance()->getName() ) ?>! <?php endif; ?> ....your code... I have tried various variations of arranging the code on a php page - see attached - and nothing seems to work. I get the following errors: Warning: require_once(/public_html/amember/library/Am/Lite.php): failed to open stream: No such file or directory in /home/tradeco/public_html/ts_main_1920/login_name_test.php on line 5 Fatal error: require_once(): Failed opening required '/public_html/amember/library/Am/Lite.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tradeco/public_html/ts_main_1920/login_name_test.php on line 5 Any help and or guidance would be greatly appreciated. Thanks in advance Luke login_name_test.php
-
Hi I'm a beginner in PHP, anyway i'm designing a website with membership, and I've created a register form and also a login, I can login and have used sessions so I can recall the username and create individual pages for each user. My next challenge is I want every user to have their own personal details stored on their individual page, the details are stored in a another database. My question Is how to link the sessions of the users to personal databases which are created in MySQL let me explain more. the user logged in welcome page the session will be called load up personal details from a second database Now I would need to link up another database to the members database using their ID key Members ID -Primary Key The second Database stuff will be inserted in this this will have to link up to the members database Now I'm not looking for an answer from you on how to do this, just recommend on what tutorials I should be following, and where to find more details on doing this.