adding multiple tables in search -
i have code
if (isset($_session['advs']) && is_array($_session['advs']))
{ $searching = true;
if (!empty($_session['advs']['team1'])) { $wher .= '('; if (isset($_session['advs']['desc'])) { $wher .= "(au.description :likedescription) or "; $asparams[] = array(':likedescription', '%' .
$system->cleanvars($_session['advs']['team1']) . '%', 'str');
} $wher .= "(au.team1 :liketeam1 or au.id = :idteam1)) , "; $asparams[] = array(':idteam1', intval($_session['advs']['team1']),
'int');
$asparams[] = array(':liketeam1', '%' .
$system->cleanvars($_session['advs']['team1']) . '%', 'str');
}
how add table called team2
Comments
Post a Comment