Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-22-2010, 01:05 AM   PM User | #1
Byronwells
Regular Coder

 
Join Date: Dec 2009
Posts: 240
Thanks: 7
Thanked 0 Times in 0 Posts
Byronwells can only hope to improve
How Do I Write This Code

Alright Php Coders please take a look at this page.... http://www.digitalresellersvault.com...e_Label_Rights

What I would to be able to do is to create a normal url link for the Newest Product part but then have it link to the categories section. But have it linked to the newest categories at all time...

Hope you guys understand.. I can supply you with the categories code if needed be.. This is taken automatically from a database
Byronwells is offline   Reply With Quote
Old 01-22-2010, 01:20 AM   PM User | #2
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
What section of that website are you trying to do?
__________________
Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?
masterofollies is offline   Reply With Quote
Old 01-22-2010, 01:23 AM   PM User | #3
Byronwells
Regular Coder

 
Join Date: Dec 2009
Posts: 240
Thanks: 7
Thanked 0 Times in 0 Posts
Byronwells can only hope to improve
Quote:
Originally Posted by masterofollies View Post
What section of that website are you trying to do?
If you have a look at the above url.. In the left column under Navigational Links, there is a link that says Newest Products.. When I say link, that needs to be created..

The link. php code needs to be create so that when the user clicks on it it always shows the newest product. This information will depend on the newest category that has been added to the membership site
Byronwells is offline   Reply With Quote
Old 01-22-2010, 01:56 AM   PM User | #4
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
So the "products" you want to be shown, the newest first. Correct?

If so then in your query to display them, your probably using a while loop. Use DESC in your WHERE section.

Also you can use mysql_insert_id which will Get the ID generated in the last query. Meaning the newest product.

If this is not what you mean, then I am sorry but I don't understand exactly.
__________________
Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?
masterofollies is offline   Reply With Quote
Old 01-22-2010, 02:15 AM   PM User | #5
Byronwells
Regular Coder

 
Join Date: Dec 2009
Posts: 240
Thanks: 7
Thanked 0 Times in 0 Posts
Byronwells can only hope to improve
Quote:
Originally Posted by masterofollies View Post
So the "products" you want to be shown, the newest first. Correct?

If so then in your query to display them, your probably using a while loop. Use DESC in your WHERE section.

Also you can use mysql_insert_id which will Get the ID generated in the last query. Meaning the newest product.

If this is not what you mean, then I am sorry but I don't understand exactly.
No...

Under the admin area I create one brand new category lets say for example jan 2010... That is then display automatically under the categories section of the page that I shown you..

Then the newest product link will picked up the newest category that we had added and then display the information for that category...

Then at the end of this month we add a new category called feb 2010. Again that is automatically displayed under the categories section.

Then the newest product link will automatically detect the new category that has been added to the system

Does that make any sense?
Byronwells is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:17 PM.


Advertisement
Log in to turn off these ads.