You are here: 答复: [PHP] HELP , HELP ,HELP « PHP « IT news, forums, messages
答复: [PHP] HELP , HELP ,HELP

Posted by Wangchq on 03/30/05 04:49

-----邮件原件-----
发件人: Chris W. Parker [mailto:cparker@swatgear.com]
发送时间: 2005年3月30日 9:36
收件人: php-general@lists.php.net
主题: FW: [PHP] HELP , HELP ,HELP

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:wangchq@china-channel.com]
Sent: Tuesday, March 29, 2005 5:23 PM
To: Chris W. Parker
Subject: ??: [PHP] HELP , HELP ,HELP




-----邮件原件-----
发件人: Chris W. Parker [mailto:cparker@swatgear.com]
发送时间: 2005年3月30日 9:04
收件人: wangchq; php-general@lists.php.net
主题: RE: [PHP] HELP , HELP ,HELP

wangchq <mailto:wangchq@china-channel.com>
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="master@china-channel.com";
$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)
?>



















Hi,
The $set is
"<pre> Available credit</pre>"
"<pre> $62,845.75</pre>"
I am thankful for your impatient.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация