note 45839 added to function.fgetss

From: Date: Tue, 21 Sep 2004 06:41:59 +0000
Subject: note 45839 added to function.fgetss
Groups: php.notes 
Request: Send a blank email to php-notes+get-77088@lists.php.net to get a copy of this message
// 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; } } ---- Manual Page -- http://www.php.net/manual/en/function.fgetss.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45839 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45839&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45839&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77088) next »