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>
    
    评论

报告相同问题?

悬赏问题

  • ¥25 matlab无法将表达式转换为双数组怎么解决?
  • ¥15 单片机汇编语言相关程序
  • ¥20 家用射频美容仪技术规格
  • ¥15 大家帮我看看为什么错了
  • ¥15 unity互动琴弦抖动效果
  • ¥15 做了个的二极管反向饱和电流测量电路,但是测试达不到效果
  • ¥15 nginx无证书访问https失败
  • ¥15 树莓派启动AP热点传入数据
  • ¥15 multisim中关于74ls192n和DSWPK开关的问题(相关搜索:计数器)
  • ¥15 在误装Windows server2019 后如何利用Windows.old恢复?