Exemple #1
0
<?php

include "wizards/inc/const.inc.php";
include "wizards/inc/function.inc.php";
include "wizards/inc/db_data.inc.php";
include "wizards/inc/mobile.inc.php";
session_start();
// connect database
mysql_connect($dbhost, $dbuser, $dbpasswd) or die("Can not connect Server.");
mysql_select_db($dbname) or die("Can not Database");
if ($Action == "Load") {
    $i = Send_Content($m_culture, "15", $Content_Code);
    if ($i == 1) {
        $sqlCmd = "INSERT INTO send_log(send_date, mobile_no, detail) VALUES(now(), '{$m_culture}', '15" . $Content_Code . "') ";
        mysql_query($sqlCmd) or die("Can not select data<br>{$sqlCmd}");
        $Msg = "�к���ӡ�èѴ���ٻ��ѧ��Ͷ�ͧ͢��ҹ���º�������� �ͺ�س�ҡ��";
    } else {
        $Msg = "�к��������ö�ӡ�èѴ���ٻ��ѧ��Ͷ�ͧ͢��ҹ�� ��سҵ�Ǩ�ͺ�ա���� �ͺ�س�ҡ��";
    }
    mysql_close();
    ?>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=tis-620" />
      <SCRIPT LANGUAGE="JavaScript">
      <!--
      alert('<?php 
    print $Msg;
    ?>
');
      window.close();
Exemple #2
0
<?php

include "wizards/inc/const.inc.php";
include "wizards/inc/function.inc.php";
include "wizards/inc/mobile.inc.php";
$i = Send_Content("019848360", "99", "18_Jun_2006.jpg");
if ($i == 1) {
    $Msg = "�к���ӡ�èѴ�������ѧ��Ͷ�ͧ͢��ҹ���º�������� �ͺ�س�ҡ��";
} else {
    $Msg = "�к��������ö�ӡ�èѴ�������ѧ��Ͷ�ͧ͢��ҹ�� ��سҵ�Ǩ�ͺ�ա���� �ͺ�س�ҡ��";
}
print $Msg;