weixin_33736832 2016-01-27 09:05 采纳率: 0%
浏览 13

网站邮箱

I have a "Contact us" form in my website with the mailto: function. The mail goes to my yahoo account. I want to implement a mailbox in my website such that i can receive those mail directly from the admin page and reply or delete them accordingly.

How I can do that?

I already have the template I need an explanation on the functions and dynamic content to be implemented.

enter image description here

  • 写回答

1条回答 默认 最新

  • weixin_33711647 2016-01-28 20:00
    关注

    This is the sample of my code .. I have change some variable name here ..

    $sql = "SELECT * FROM request where user_id='$user'";
    $result = $conn->query($sql);
    $sr=1;
    if ($result->num_rows > 0) {
        // output data of each row
        while($row = $result->fetch_assoc()) {
            $sender_id=$row["sender_id"];
            $receiver_id=$row["receiver_id"];
            $req=$row['req_id'];
            $stat=$row['status'];
            if($stat==0){
                $status="Pending...";
            }
            elseif ($stat==1) {
                 $status="Accepted.";
            }
            elseif ($stat==2) {
                $status="Rejected.";
            }
            $sql1 = "SELECT * FROM usertable1 where id='$sender_id' ";
            $result1 = $conn->query($sql1);
            if ($result1->num_rows > 0) {
                // output data of each row
                while($row1 = $result1->fetch_assoc()) {
                    $username=$row1['user_name'];
                    $email=$row1['email'];
                }
            }
            $sql2 = "SELECT * FROM  usertable2 where id='$receiver_id' ";
            $result2 = $conn->query($sql2);
            if ($result2->num_rows > 0) {
                // output data of each row
                while($row2 = $result2->fetch_assoc()) {
                    $source=$row2['source'];
                    $destination=$row2['destination'];
                }
            }

    you will get an idea from this so you can implement as per your requirement.

    </div>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退
  • ¥20 win系统的PYQT程序生成的数据如何放入云服务器阿里云window版?