Getting highest field value
#7

Your problem is because cache_get_data returns the number of rows of data returned from the SQL query, which will always be one for the query you are performing. The query you are performing will return the highest value of the ID field which you can access with cache_get_row. Kar's solution above should work.
Reply


Messages In This Thread
Getting highest field value - by BaubaS - 01.06.2012, 22:29
Re: Getting highest field value - by Jonny5 - 01.06.2012, 22:31
Re: Getting highest field value - by BaubaS - 01.06.2012, 22:35
Re: Getting highest field value - by Jonny5 - 01.06.2012, 22:42
Re: Getting highest field value - by Vince - 01.06.2012, 22:46
Re: Getting highest field value - by Kar - 02.06.2012, 03:46
Re: Getting highest field value - by Scott - 02.06.2012, 05:24
Re: Getting highest field value - by BaubaS - 02.06.2012, 07:14
Re: Getting highest field value - by BaubaS - 02.06.2012, 07:40
Re: Getting highest field value - by iggy1 - 02.06.2012, 07:52

Forum Jump:


Users browsing this thread: 2 Guest(s)