Getting highest field value
#1

I started using r7 plugin today, and I have a question. I am trying to get highest field `ID` value, I tried to do something, but it always returns 1.

pawn Код:
mysql_function_query(iHandle, "SELECT MAX(ID) FROM `test`", true, "Test", "");
}

forward Test();
public  Test()
{
    new rows, fields, temp[12];
    cache_get_data(rows, fields);
    printf("%d zaideju", rows);
}
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: 1 Guest(s)