Reply
Old 10-17-2009, 08:04 PM Some coding help
Junior Talker

Posts: 1
Trades: 0
I am trying to create a website with some simple concepts but I am having some issues with the coding. Can anyone help me please.

I need a page that after the user puts in his username and password it directs him to a page that lists from a database table only that users orders. The database will have all users orders in it but I want only that user to see his own orders.

Noted: I am using cpanel, phpmyadmin, and mysql to form the databases.
FlaStorm is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-18-2009, 01:48 AM Re: Some coding help
JeremyMiller's Avatar
Full-Time TeraTasker

Posts: 1,470
Name: Jeremy Miller
Location: Marianna, FL
Trades: 0
Please post your attempt and ask for questions where you are stuck. If you want a script coded for you, then the marketplace is the correct place to post.
__________________
Jeremy Miller - TeraTask
Content Farmer - Automated Posting for Content & Blog Sites
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 10-18-2009, 07:32 PM Re: Some coding help
Physicsguy's Avatar
Extreme Talker

Posts: 191
Name: Physicsguy
Location: On Earth
Trades: 0
Well, you could set the database (whatever you have now) so that when the user orders something, it creates a section in your database, and adds his stuff in it. This should be done on registry, though. When the user wants to see their stuff, just make a link like:

http://www.example.com/userorders?userID=1337

And if that user's ID is 1337 () then it displays his stuff. But if the user decides to edit the URl, and types

http://www.example.com/userorders?userId=666

Then it will ask for user # 666 ()'s password to view it.

So basically;

if user is logged in, give link to order page
else if user is not logged in, do not show link.
else if userID == userID (the one in the URL) show orders page
else if userID != userID (the URL one) do not show orders page
else if userID == userID but password = false; echo "did you forget your password?";

Stuff like that?

Last edited by Physicsguy; 10-18-2009 at 07:34 PM..
Physicsguy is offline
Reply With Quote
View Public Profile Visit Physicsguy's homepage!
 
Reply     « Reply to Some coding help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10403 seconds with 13 queries