Jump to content

[SOLVED] using WHERE in mysql_query


Nothadoth

Recommended Posts

im using this (everything connects to the database

mysql_query("SELECT * FROM nav ORDER BY id ASC LIMIT 5 WHERE type='site'");

 

can someone tell me why it wont work :S the table nav exists. the column 'type' exists. and id.

 

it says:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/westmids/public_html/en/header.php on line 33

Link to comment
https://forums.phpfreaks.com/topic/58334-solved-using-where-in-mysql_query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.