Jump to content

php mysql MAX


monkeytooth

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.