Jump to content

Recommended Posts

I have a table that consists of many many rows. These rows are used for sorting my members saved lists. They take items from within the site add them to a list (or remove them). Each row is a different item for any given users list. The lists can be any size generally speaking. So that said Im not sure how to use this MAX properly. Anyone able give me a hand?

 

 

Link to comment
https://forums.phpfreaks.com/topic/199958-php-mysql-max/
Share on other sites

You know what thinking and thinking and thinking about it.. MAX i really dont think is my solution. Im not trying to group things together and find the max based on the groups. I am trying to find the highest number. Period. If any of my members have a list of 5 lets say for example, I need to query my database specific to that user and find out what the last highest number is. So when they add a 6th in this case it will add +1 to the highest number and insert it into the DB.. but Im stuck I cant seem to get it to do that.

 

Link to comment
https://forums.phpfreaks.com/topic/199958-php-mysql-max/#findComment-1049508
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.