Hi
I am looking for an equivalent to the LOCATE function from MySQL.
I have a query(PHP) that looks like this:
Any Ideas?
I am looking for an equivalent to the LOCATE function from MySQL.
I have a query(PHP) that looks like this:
Code:
$query="SELECT * FROM table WHERE LOCATE('".$var."', field)> 0 ORDER BY LOCATE('".$var."', field) LIMIT 10";
Comment