27/10/2022 12:11
(19/03/2021 00:47)luanveloz1 Escreveu:Código:new cache:result = mysql_query(conn, "select 'ola mundo'");
printf("result = %s ", result);
cache_delete(result);
me retorna: result = ☺☺,O
Código:new cache:result = mysql_query(conn, "select 10");
printf("result = %d ", result);
cache_delete(result);
me retorna: result = 1
Sabes dizer porquê? Não faz sentido não conseguir printar o result.
utilize o cache no final da conexão feita com o mysql_query
Código:
new cache:result = mysql_query(conn, "select 'ola mundo'", true);
printf("result = %s ", result);
cache_delete(result);
Código:
new cache:result = mysql_query(conn, "select 10", true);
printf("result = %d ", result);
cache_delete(result);