Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Thomas Couto

Erro MYSQL

Recommended Posts

Aqui em casa estava funcionando quando fiz o upload:

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /virtual/vaspvirtual.com/www/include/database.php on line 220Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /virtual/vaspvirtual.com/www/include/database.php on line 231Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /virtual/vaspvirtual.com/www/include/database.php:220) in /virtual/vaspvirtual.com/www/include/session.php on line 46Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /virtual/vaspvirtual.com/www/include/database.php on line 231Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /virtual/vaspvirtual.com/www/include/database.php on line 220Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /virtual/vaspvirtual.com/www/include/database.php on line 231Warning: Cannot modify header information - headers already sent by (output started at /virtual/vaspvirtual.com/www/include/database.php:220) in /virtual/vaspvirtual.com/www/process.php on line 60

Compartilhar este post


Link para o post
Compartilhar em outros sites

function calcNumActiveUsers(){	  /* Calculate number of users at site */	  $q = "SELECT * FROM ".TBL_ACTIVE_USERS;	  $result = mysql_query($q, $this->connection);	  $this->num_active_users = mysql_num_rows($result);   }

por exemplo ele dá erro nessa linha $this->num_active_users = mysql_num_rows($result);

 

 

lembrando que eu estou usando classes.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.