Viewing file: updateDBChk.php (1.71 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
?>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<?php
function checkUpdateRegist(){
$oCRg = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_REGIST'], $GLOBALS['USER_REGIST'], $GLOBALS['PASSWORD_REGIST']);
$cond_rg=true;
$db_selected = mysql_select_db($oCRg->db, $oCRg->c);
if (!$db_selected) {
/*die("<p align=center>
<table align=center border=0 cellpadding=3 cellspacing=1 bgcolor=red>
<tr align=center bgcolor=#ff9999><th>เกิดข้อผิดพลาด</th></tr>
<tr align=center bgcolor=#ffffff><td><br>ไม่สามารถติดต่อฐานข้อมูลได้<br><br>
".mysql_error()."</td></tr>
</table>
</p>");
*/
// die ('Can\'t use '.$this->db . mysql_error());
$cond_rg = false;
}
$cond_ppc=true;
$oPPc = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_PPC'], $GLOBALS['USER_PPC'], $GLOBALS['PASSWORD_PPC']);
$db_selected = mysql_select_db($oPPc->db, $oPPc->c);
if (!$db_selected) {
/*die("<p align=center>
<table align=center border=0 cellpadding=3 cellspacing=1 bgcolor=red>
<tr align=center bgcolor=#ff9999><th>เกิดข้อผิดพลาด</th></tr>
<tr align=center bgcolor=#ffffff><td><br>ไม่สามารถติดต่อฐานข้อมูลได้<br><br>
".mysql_error()."</td></tr>
</table>
</p>");
*/
$cond_ppc=false;
// die ('Can\'t use '.$this->db . mysql_error());
}
if($cond_rg && $cond_ppc){
return true;
}else{
return false;
}
}
?>
|