[COLOR= #0000BB]<?php
$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM pages WHERE title OR text LIKE %"[/COLOR][COLOR= #007700].[/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]search[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"% ORDER BY id ASC"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
?> moet ervoor zorgen dat hij tekst of titel zoekt
maar het werkt alleen op de text en title doet hij niet
hoe komt dit?EDIT:
als ik nu text als eerste doe dan zoekt hij alleen op title
