When mysql request error. I give part of the code:

$select=mysql_query("SELECT id_article, date, caption, text, keywords FROM article ORDER BY date DESK"); if(!$select){echo mysql_error();} while($row=mysql_fetch_assoc($select)){?>...<?}?> 

Mistake:

You have an error in your SQL syntax; At the line 1 Warning: mysql_fetch_assoc () expects parameter 1, there is a boolean given in Z: homeblog www.windex.php on line

Swears after I enter the DESK keyword in the query

Closed due to the fact that off-topic participants andreymal , 0xdb , aleksandr barakin , user192664, entithat Nov 8, '18 at 12:53 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - andreymal, 0xdb, aleksandr barakin, Community Spirit, entithat
If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    It is necessary not DESK, but DESC will be correct

    • one
      what a stupid mistake ... ashamed) - JL