WEB开发网
开发学院WEB开发PHP 社区(php&&mysql)一 阅读

社区(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";

上一页  1 2 3 4  下一页

Tags:社区 php mysql

编辑录入:coldstar [复制链接] [打 印]
赞助商链接