09/10/2018, 17:55
[Q] Một vấn đề hay!
Trong một trang php, ví dụ mình dùng một lệnh delete một mục gì đó chẳng hạn,muốn rằng trước khi thi hành thì sẽ hiện một hộp thông báo hỏi lại,ví như"are you sure?",gồm 2 nút yes ,no thì phải làm thế nào?.Mong được chỉ giáo.
Bài liên quan
xem trả lời ở đây: http://diendantinhoc.com/showthread....threadid=20381
lần sau bạn đừng post 2 chủ đề cho cùng 1 nội dung nhé
Warning: Failed to Connect in c:\fox\www\chuong27\mail_fns.php on line 266.
Dòng 266 là dòng if (mail($to,$subject,$message,$other))
Chapter27 sách PHP&MySQL Development,tạo based webmail
function send_message($to, $cc, $subject, $message)
{
//send one email via PHP
global $auth_user;
if (!db_connect())
{
return false;
}
$query = "select address from users where username='$auth_user'";
$result = mysql_query($query);
if (!$result)
{
return false;
}
else if (mysql_num_rows($result)==0)
{
return false;
}
else
{
$other = "From: ".mysql_result($result, 0, "address")."\r\ncc: $cc";
if (mail($to, $subject, $message, $other))
return true;
else
{
return false;
}
}
}
XIN CAM ON!
khi upload lên host thì vẫn chạy bình thường