Wangchq,

Please send all responses to the public mailing list.

What we need to know from you is what $set is and what data it contains. 
Otherwise there's no way to tell why it's not matching.



Chris.

-----Original Message-----
From: wangchq [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 29, 2005 5:23 PM
To: Chris W. Parker
Subject: ??: [PHP] HELP , HELP ,HELP




-----éäåä-----
åää: Chris W. Parker [mailto:[EMAIL PROTECTED] 
åéæé: 2005å3æ30æ 9:04
æää: wangchq; php-general@lists.php.net
äé: RE: [PHP] HELP , HELP ,HELP

wangchq <mailto:[EMAIL PROTECTED]>
    on Tuesday, March 29, 2005 4:50 PM said:

> Hi;

Hello.

> I use this regulation expression to check account(money)type, but it
> does not work.

That's "regular" expression. You were close. :P

>  if(eregi("^\$[0-9]+\,[0-9]+\.[0-9]+",$set,$account)){
> 
>                     $reg_account=$account[1]; }
> 
>          else $reg_account=-1;

Give some examples of the data you are feeding your regex so we can see
where you are going wrong.



Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php












Hi,
I would be grateful first.
There is nothing on the feedins.it does not work from this segment of the 
programme.
       if(eregi("^\$[0-9]+\,[0-9]+\.[0-9]+",$set,$account)){
                    $reg_account=$account[1]; }
         else $reg_account=-1;
         if($reg_account==-1){
             echo "not query account\n";}


         if($reg_account<=$row[balance_borderline]){

                $mailfrom="[EMAIL PROTECTED]";
                $mailto = trim(explode(",",$row[notify_mail]));
                $message = 
"ÃÃÂÃÃÂÂÃÂÃÃÃÂÃÃÃÂÃÃÃÃÃÃÃÃÃÃÃÂÃÃÃÂÃÂÃÃÃ";
                $date = date("YÃÃmÃÃdÃÃ");
                $subject = "ÃÂÂÃÂÃÃÃÂÃÂÃÃÃÃÃÃÃ";



                send_email($mailto, $mailfrom, $subject, $message);
          }
        else exit();
    }
                 $row=ifx_fetch_row($result_id, "next");
                 checkerr("file:".$prog_name." line:".__LINE__);
 }while(0)
?>

Reply via email to