Jump to content

MySQL Query Error


balkan7

Recommended Posts

Mysql query only has two parameters. Your code code has three parameters. The only parameters mysql_query has is the query and the secound parameter which is optional is the link identify to the mysql connection. So this is what the line should look like:
[code]$query = mysql_query ("select * from top_cats order by catname") or die (mysql_error());[/code]
Link to comment
https://forums.phpfreaks.com/topic/25394-mysql-query-error/#findComment-115811
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.