Jump to content
Fórum Script Brasil
  • 0

Erro no Sql


btt50

Question

Boas eu tenho este codigo e acho que ta bem mas da me este erro .

$result = mysql_query("SELECT  FROM videos,anedota WHERE semana='1'"); ->linha 63       
            while($row = mysql_fetch_array($result)) ->linha 64
            {
erro
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\index.php on line 64

Ajudem me obg..

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Pelo que entendi, se você tem 03 tabelas e quer buscar informações nas três, com os mesmos campos e se houver relacionamento entre elas, você terá que usar um junção com INNER JOIN, LEFT JOIN, etc. e apelidar as tabelas: ex: tab.semana AS semana1, etc..

abs

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.

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...