| NamePros Regular Join Date: Jul 2006
Posts: 525
NP$: 52.50 ( Donate)
| Parse error: syntax error, unexpected T_IF in Hi,
For some reason I get the below error. Can someone find where this is going wrong? Parse error: syntax error, unexpected T_IF in /home/www/mydomain(.)com/page_search.php on line 8
Here is the code PHP Code: <?php
+ // We urlencoded the whole search string so we need to
+ // urldecode and convert it back to utf-8
+ $id = $id === 0 ? '' : utf8_encode(urldecode($id));
+
if ($id != '' && !strstr($id, '|'))
{
$keywords = $db->real_escape_string(trim($id));
}
Thanks |