Portal SAMP
[Ajuda] MySql R41-4 invalid row index '0' - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] MySql R41-4 invalid row index '0' (/showthread.php?tid=4207)



MySql R41-4 invalid row index '0' - Jean_Rocha - 14/11/2023

Opá tudo Bom com vocês! Eu já tentei arrumar esse problema, mas não foi bem-sucedido, eu não consigo entender muito bem oque ele quer me dizer?
Oque eu devo fazer, alguém pode me ajudar ou até explicar há resolver este problema?
Citar:[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:29:59] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:00] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')
[22:30:01] [ERROR] cache_get_value_name: invalid row index '0' (number of rows: '0')



RE: MySql R41-4 invalid row index '0' - pushline - 14/11/2023

tu n vai conseguir acessar o primeiro registro (começando de 0 como é o padrao pra array) quando não existe nada no cache_num_rows.


RE: MySql R41-4 invalid row index '0' - Jean_Rocha - 14/11/2023

(14/11/2023 23:00)pushline Escreveu: tu n vai conseguir acessar o primeiro registro (começando de 0 como é o padrao pra array) quando não existe nada no cache_num_rows.

Não existe, oque eu tevo fazer?


RE: MySql R41-4 invalid row index '0' - pushline - 14/11/2023

Código PHP:
if(cache_num_rows() > 0
{
    
cache_get_value_name(0, ...); 




RE: MySql R41-4 invalid row index '0' - Jean_Rocha - 15/11/2023

(14/11/2023 23:23)pushline Escreveu:
Código PHP:
if(cache_num_rows() > 0
{
    cache_get_value_name(0, ...); 


Acho que eu vou estudar mais! Obrigado meu amigo.