Retrive a string MySQL cache get field content
#5

Quote:
Originally Posted by jlalt
Посмотреть сообщение
row index, for example when you do
PHP код:
SELECT FROM `ACCOUNTSWHERE `LEVEL` = '0' 
it will get the rows from latest guy registered with level 0 to oldest guy registered and has level 0 yet,
so if you do

PHP код:
cache_get_field_content(0"name"dest); 
it will get latest guy name but if you do
PHP код:
cache_get_field_content(mysql_num_rows()-1"name"dest); // -1 cause rows index start from 0 
it will get oldest guy name

so by that you can do a loop to get all players names which got level 0

PHP код:
for(new 0mysql_num_rows(); i++) {
   
cache_get_field_content(i"name"dest);  
   
printf(dest);

So if I limit the query to 1 (LIMIT = 1)
I should use row 0 all the time, right ?
Reply


Messages In This Thread
Retrive a string MySQL cache get field content - by NeXoR - 24.04.2016, 15:41
Re: Retrive a string MySQL cache get field content - by jlalt - 24.04.2016, 15:52
Re: Retrive a string MySQL cache get field content - by NeXoR - 24.04.2016, 15:56
Re: Retrive a string MySQL cache get field content - by jlalt - 24.04.2016, 16:02
Re: Retrive a string MySQL cache get field content - by NeXoR - 24.04.2016, 16:07
Re: Retrive a string MySQL cache get field content - by jlalt - 24.04.2016, 16:08
Re: Retrive a string MySQL cache get field content - by NeXoR - 24.04.2016, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)