Jump to content

[SOLVED] "Or" and "sequence" mysql query


sungpeng

Recommended Posts

$sql = "SELECT * FROM users WHERE specialise1 LIKE '%$specialise1%' or specialise2 LIKE '%$specialise1%' or specialise3 LIKE '%$specialise3%' ORDER BY listdate LIMIT $offset, $rowsperpage";   

 

First I would like to check whether the sequence for WHERE, ORDER, LIMIT is correct.

Second I see the 'or' seen not working. pls help

 

 

Link to comment
https://forums.phpfreaks.com/topic/156057-solved-or-and-sequence-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.