社区(php&&mysql)一
2008-02-15 18:00:16 来源:WEB开发网核心提示: $rs=MySQL(和PHP搭配之最佳组合)_db_query($sql['db'],$qsql); $row=MySQL(和PHP搭配之最佳组合)_fetch_array($rs); $poster=$row['poster']
$rs=MySQL(和PHP搭配之最佳组合)_db_query($sql['db'],$qsql);
$row=MySQL(和PHP搭配之最佳组合)_fetch_array($rs);
$poster=$row['poster'];
$banner=$row['banner'];
$body=$row['body'];
$subj=$c_poster."ㄓ璹綷ゅ彻";
$message=":$poster\n";
$message.="ゅ彻夹肈:$banner\n";
$message.="ゅ彻ず甧:$body\n";
$message.="\nㄤ闽ゅ彻叫 http://$HTTP_HOST$PHP_SELF?proc=view&aid=$aid&sid=$sid&rid=$rid\n";
$message.="<<舧>>\n";
$mailfrom="From:Magic Jerry";
$qsql="SELECT * from bbs_sml where sid='$sid'";
$rs=MySQL(和PHP搭配之最佳组合)_db_query($sql['db'],$qsql);
while($row=MySQL(和PHP搭配之最佳组合)_fetch_array($rs)) { //mail_list
$email=$row['email'];
mail($email,$subj,$message,$mailfrom);
echo $email;
}
//盚倒恨瞶
$qsql="SELECT * from bbs_area where id='$aid'";
$rs=MySQL(和PHP搭配之最佳组合)_db_query($sql['db'],$qsql);
$row=MySQL(和PHP搭配之最佳组合)_fetch_array($rs);
$email=$row['email'];
$banner=$row['banner'];
mail($email,"$banner 穝秈ゅ彻",$message,$mailfrom);
}
//===============================================================
function mail_friend(){
global $PHP_SELF,$HTTP_HOST,$c_email,$c_poster,$frmail;
global $aid,$sid,$rid;
if(check_mail($frmail)) {
$DROOT=getenv('DOCUMENT_ROOT');
include("sql.php3");
$db=MySQL(和PHP搭配之最佳组合)_connect($sql['host'], $sql['user'] , $sql['passwd']);
if($sid==$rid) {
$qsql="SELECT * from bbs_subj where id='$rid' ";
} else {
$qsql="SELECT * from bbs_docs where id='$rid' ";
}
$rs=MySQL(和PHP搭配之最佳组合)_db_query($sql['db'],$qsql);
$row=MySQL(和PHP搭配之最佳组合)_fetch_array($rs);
$banner=$row['banner'];
$body=$row['body'];
$subj=$c_poster."ざ残ゅ彻";
$message="狟ね: $c_poster ざ残硂ゅ彻\n";
$message.="ゅ彻夹肈:$banner\n";
$message.="ゅ彻ず甧:$body\n";
$message.="\nㄤ闽ゅ彻叫 http://$HTTP_HOST$PHP_SELF?proc=view&sid=$sid&aid=$aid&rid=$rid\n";
更多精彩
赞助商链接