Getting this error "Parse error: syntax error, unexpected T_VARIABLE in /home/vasudhai/public_html/searchcontacts.php on line 22"
I am using this below given code:
OurHelp Hyd Search
$var = @$_GET['q'] ;
$trimmed = trim($var) //trim whitespace from the stored variable
// rows to return
$limit="10";
// check for an empty string and display a message.
if ($trimmed == "")
{
echo "
Please enter a search...
";
exit;
}
// check for a search parameter
if (!isset($var))
{
echo "
We dont seem to have a search parameter!
";
exit;
}
mysql_connect("localhost","user","pass
here i am unable to copy complete code...
2006-11-10
21:22:46
·
3 answers
·
asked by
Anonymous
in
Programming & Design