Home › Forums › AFP548 Community › Projects › PHP Gift Registry
- This topic has 6 replies, 1 voice, and was last updated 20 years, 5 months ago by
ElgertS.
-
AuthorPosts
-
November 6, 2004 at 5:11 pm #359845
ElgertS
ParticipantPROJECT DESCRIPTION
This is a fun project to host your own Gift Registry. The registry allows users to register but requires the administrator to approve new users. Your users will see a list of other users and can request the ability to view the gift list of a particular user. If that users approves their request, they can see the list and either reserve or purchase gifts for that individual.
Gift request entries have a star rating, descriptions, categories, comments, and a url to simplify shopping.
Upcoming events are listed along with how many days left for shopping.
A convenient page is generated showing you the products you are buying or plan to buy along with their pricing and a total to be spent.
November 6, 2004 at 5:35 pm #359850ElgertS
ParticipantStep 1: Download PHP Gift Registry
Download the project:
Decompress and move to directory you wish to host the site from.
November 6, 2004 at 5:40 pm #359851ElgertS
ParticipantStep 2: Create a database for PHP Gift Registry
Using PHPMyAdmin, create a new database named “phpgiftreg” or whatever name you choose for the installation you are preparing.
November 6, 2004 at 5:42 pm #359852ElgertS
ParticipantStep 3: Edit SQL code
Open the “create-phpgiftregdb.sql” file in an editor and scroll to the very bottom. Configure your default user information in the following line changing the values to be valid entries:
INSERT INTO users(username,password,fullname,email,approved,admin) VALUES (‘username’,’password’,’fullname’,’[email protected]’,1,1);
November 6, 2004 at 5:44 pm #359853ElgertS
ParticipantStep 4: Insert SQL into database
Using PHPMyAdmin, select the phpgiftreg database and open the SQL tab. Select your edited “create-phpgiftregdb.sql” file to populate the database.
November 6, 2004 at 5:49 pm #359854ElgertS
ParticipantStep 5: Edit db.php
Using an editor, open the db.php file and correctly set the following with your server name, MySQL user name, and MySQL password:
mysql_connect(“host”,”username”,”password”)
or die(“Could not connect: ” . mysql_error());November 6, 2004 at 5:52 pm #359855ElgertS
ParticipantStep 6: Log into PHP Gift Registry
At this point you can log into the website using the administrator account you configured earlier. You can also invite users to register on the site. Once they register, the system will ask you to approve them before they can log in and begin adding their gift requests.
Each user must make an individual request to other users if they wish to view each other’s gift request lists. Those users must either accept or deny this request.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed