Hi,
i want to make a mySQL query where the result should be
in $result1
any sting with a phrase of $search
in $result2
any sting with the exact phrase of $search
$result1 works fine, but $result2 gives out an empty sting
$result1 = mysql_query("SELECT name FROM table WHERE name LIKE
'%".strtolower($search)."% ");
$result2 = mysql_query("SELECT name FROM table WHERE name =
'%".strtolower($search)."% ");
e.g.
row 1 in name = "my big appletree in the garden"
row 2 in name = "my big apple in the garden"
so the result should be in $result2 with $search="apple"
2
Can anybody help me
Harry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php