96turnerri
11-20-2004, 06:34 PM
i know using a wildcard is not possible in an sql query (well under where caluse anyway) eg
$sql = "SELECT team1, team2, id FROM pools WHERE * = '$user'"; will not work, however i need to do an sql query to search basically 100 colomns, i dont want to do this
$sql = "SELECT team1, team2, id FROM pools WHERE 01 = '$user' OR 02 = '$user' .... '99' = '$user'";
anyone have any better suggestions, i can think of a few work arounds but what would you say is easier
Thanks
Rich
$sql = "SELECT team1, team2, id FROM pools WHERE * = '$user'"; will not work, however i need to do an sql query to search basically 100 colomns, i dont want to do this
$sql = "SELECT team1, team2, id FROM pools WHERE 01 = '$user' OR 02 = '$user' .... '99' = '$user'";
anyone have any better suggestions, i can think of a few work arounds but what would you say is easier
Thanks
Rich