Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Warning: mysql_num_rows()



pessoal eu mudei de host, e apareceu este erro:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /teste/public_html/part/config.php on line 39


$identmembre = mysql_query("select * from users where id_membre='$id'");

$numident = mysql_num_rows($identmembre);

o que esta errado? Oo

Edited by Vampyro
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

eu descobri o por que.. xD

o $_SESSION['id'] nunca poderia ficar sem valor..

agora tem outro..

que achei que fosse o mesmo, mas não é..

No database selected

$verif = mysql_query("SELECT * FROM logoutuser WHERE ip = '$uip'") or die (mysql_error());

$evo = mysql_num_rows($verif);

por que aparece o No database selected ?

a tabela esta lá criada.. tudo certinho..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...