Jump to content
Fórum Script Brasil
  • 0

Erro Warning: mysql_fetch_object(): supplied argument is not a valid M


vicente_92

Question

Boa sou novo no forum e não conheço muito bem sobre PHP,espero que alguém possa me ajudar.

Fiz um sistema e arrumei todo ele em localhost e quando passei para a hospedagem um arquivo PHP deu o seguinte erro ao ser executado":Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in

Na linha do erro eu escrevi assim: <?

include"../System/validar_usuario.php";

$i = 0;

$consultavoo = mysql_query("SELECT newroutes.* , escalas.idVoo, escalas.idPiloto, escalas.Sit FROM NewRoutes INNER JOIN escalas ON escalas.idVoo = NewRoutes.idRota and idPiloto = '$id' WHERE Sit != '4' ORDER BY escalas.idEscala ASC LIMIT 10");

while($linha = mysql_fetch_object($consultavoo)) {

$i++;

?>

alguém pode me informar oque esta errado sendo que em localhost eu consigo roda-lo sem problemas ?

Grato. :rolleyes:

Edited by vicente_92
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

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

Guest
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
      152.2k
    • Total Posts
      652k
×
×
  • Create New...