This is what I currently have:
<?php
$sql = "SELECT links.*
FROM keywords_table, keywords_to_links, links
WHERE (keyword LIKE '%wheel%')
AND keyword_id_ref = keyword_id
AND link_id_ref = link_id";
?>
But I need to change the WHERE clause to include another word, 'truck'. But, when I do the following it just hangs up:
<?php
$sql = "SELECT links.*
FROM keywords_table, keywords_to_links, links
WHERE (keyword LIKE '%wheel%')
|| (keyword LIKE '%truck%')
AND keyword_id_ref = keyword_id
AND link_id_ref = link_id";
?>
Any suggestions?