Problem with get data MySQL
#8

Quote:
Originally Posted by MRM
Посмотреть сообщение
Fixed. Thanks @xJayce @BroZeus
When the row is 1? ( cache_get_row(1 ,....) )
Thanks.
Row is 1 when there are more than one rows being selected. For example if you select all player data then number of rows in list is number of rows in the table.
Example :
PHP код:
mysql_function_query(1"SELECT id FROM `users`"true"Just_a_Example""");//see the query it will select id of all users
public Just_a_Example()
{
   new 
rows cache_get_row_count();//get num of rows in result
   
for(new 0;rowsi++)
   {
       new 
id cache_get_row_int(i0);//number of row changes here, see the 'i'
       
printf("User id :%d row: %d"idi); 
   }
   return 
1;

Reply


Messages In This Thread
Problem with get data MySQL - by MRM - 02.07.2016, 08:42
Re: Problem with get data MySQL - by SyS - 02.07.2016, 08:43
Re: Problem with get data MySQL - by MRM - 02.07.2016, 08:45
Re: Problem with get data MySQL - by MRM - 02.07.2016, 08:50
Re: Problem with get data MySQL - by xJayce - 02.07.2016, 08:51
Re: Problem with get data MySQL - by BroZeus - 02.07.2016, 09:02
Re: Problem with get data MySQL - by MRM - 02.07.2016, 09:20
Re: Problem with get data MySQL - by [cS]Owain - 02.07.2016, 09:31
Re: Problem with get data MySQL - by MRM - 02.07.2016, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)