RE: [PHP] Finding array in MySQL (I'm not asking the right question)

From: Date: Tue, 02 Dec 2003 15:39:15 +0000
Subject: RE: [PHP] Finding array in MySQL (I'm not asking the right question)
Groups: php.general 
Request: Send a blank email to php-general+get-171590@lists.php.net to get a copy of this message
[snip] Well, "SELECT email FROM table WHERE id = " . $array . ")"; [/snip] $arrayUser[1] = 'bob'; $arrayUser[2] = 'cindy'; $arrayUser[1] = 'mark'; $countUser = count($arrayUser); for($i = 0; $i < $countUser; $i++){ $sql = "SELECT email FROM table WHERE id = '" . $arrayUser[$i] . "' "; }

« previous php.general (#171590) next »