note 45839 deleted from function.fgetss by nlopess

From: Date: Tue, 21 Sep 2004 11:09:35 +0000
Subject: note 45839 deleted from function.fgetss by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77098@lists.php.net to get a copy of this message
Note Submitter: ---- // Test Only for ($i=0; $i<count($cardsList); $i++) { $card = preg_replace("/\s/", "", trim($cardsList[$i])); if (ereg($cardFormat, $card)) { $sql = "select STATUS from cards where CARDNUM = '" . $card . "'"; $result = @mysql_query($sql); if ($row = @mysql_fetch_array($result)) { if ($row["STATUS"] == CARD_UNSOLD) $cards["ok"][count($cards["ok"])] = $card; else $cards["unallowed"][count($cards["unallowed"])] = $card; } else { $cards["no"][count($cards["no"])] = $card; } } else if ($card) { $cards["invalid"][count($cards["invalid"])] = $card; } }

« previous php.notes (#77098) next »