Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Dec 2009
    Posts
    243
    Thanks
    7
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    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?

  • #3
    Regular Coder
    Join Date
    Dec 2009
    Posts
    243
    Thanks
    7
    Thanked 0 Times in 0 Posts
    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

  • #4
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    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?

  • #5
    Regular Coder
    Join Date
    Dec 2009
    Posts
    243
    Thanks
    7
    Thanked 0 Times in 0 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •