|
|
|
อัปเว็บขึ้นโฮสแล้ว หน้าแรกแสดงปกติ พอกดลิงค์ไปหน้าถัดไป เป็นหน้าขาว ผิดพลาดตรงไหนหรอคะ |
|
|
|
|
|
|
|
ไม่มีอะไรให้ดูหน่อยหรอ เช่น code หน้าที่ขาว
|
|
|
|
|
Date :
2015-12-04 12:52:58 |
By :
progamer2000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- โค้ดหน้าที่ขาวคะ --
Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style type="text/css">
<!--
body {
margin-top: 0px;
background-image: url(image/Untitled-1.jpg);
}
.testbutton {
font-family: 'times new roman';
font-weight: bold;
color: #FFFAFB !important;
font-size: 16px;
text-shadow: 0px 1px 1px #D5DECE;
box-shadow: 2px 2px 3px #F2F2F9;
padding: 4px 25px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
background: #63B8EE;
background: linear-gradient(top, #F2070F, #FC1921);
background: -ms-linear-gradient(top, #F2070F, #FC1921);
background: -webkit-gradient(linear, left top, left bottom, from(#F2070F), to(#FC1921));
background: -moz-linear-gradient(top, #F2070F, #FC1921);
}
.testbutton1:hover {
color: #14396A !important;
background: #468CCF;
background: linear-gradient(top, #468CCF, #63B8EE);
background: -ms-linear-gradient(top, #468CCF, #63B8EE);
background: -webkit-gradient(linear, left top, left bottom, from(#468CCF), to(#63B8EE));
background: -moz-linear-gradient(top, #468CCF, #63B8EE);
}
--
.testbutton1 { font-family: 'times new roman';
font-weight: bold;
color: #FFFAFB !important;
font-size: 16px;
text-shadow: 0px 1px 1px #D5DECE;
box-shadow: 2px 2px 3px #F2F2F9;
padding: 4px 25px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
background: #63B8EE;
background: linear-gradient(top, #F2070F, #FC1921);
background: -ms-linear-gradient(top, #F2070F, #FC1921);
background: -webkit-gradient(linear, left top, left bottom, from(#F2070F), to(#FC1921));
background: -moz-linear-gradient(top, #F2070F, #FC1921);
}
.testbutton1 {
font-family: 'times new roman';
font-weight: bold;
color: #FFFAFB !important;
font-size: 16px;
text-shadow: 0px 1px 1px #D5DECE;
box-shadow: 2px 2px 3px #F2F2F9;
padding: 4px 25px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
background: #63B8EE;
background: linear-gradient(top, #332626, #332626);
background: -ms-linear-gradient(top, #332626, #332626);
background: -webkit-gradient(linear, left top, left bottom, from(#332626), to(#332626));
background: -moz-linear-gradient(top, #332626, #332626);
}
.testbutton1:hover {
color: #14396A !important;
background: #468CCF;
background: linear-gradient(top, #468CCF, #63B8EE);
background: -ms-linear-gradient(top, #468CCF, #63B8EE);
background: -webkit-gradient(linear, left top, left bottom, from(#468CCF), to(#63B8EE));
background: -moz-linear-gradient(top, #468CCF, #63B8EE);
}
.testbutton3 {
font-family: 'times new roman';
font-weight: bold;
color: #FFFAFB !important;
font-size: 16px;
text-shadow: 0px 1px 1px #D5DECE;
box-shadow: 2px 2px 3px #F2F2F9;
padding: 4px 25px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
background: #63B8EE;
background: linear-gradient(top, #FF1C59, #FF1C59);
background: -ms-linear-gradient(top, #FF1C59, #FF1C59);
background: -webkit-gradient(linear, left top, left bottom, from(#FF1C59), to(#FF1C59));
background: -moz-linear-gradient(top, #FF1C59, #FF1C59);
}
.testbutton3:hover {
color: #14396A !important;
background: #468CCF;
background: linear-gradient(top, #468CCF, #63B8EE);
background: -ms-linear-gradient(top, #468CCF, #63B8EE);
background: -webkit-gradient(linear, left top, left bottom, from(#468CCF), to(#63B8EE));
background: -moz-linear-gradient(top, #468CCF, #63B8EE);
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.testbutton2 { font-family: 'times new roman';
font-weight: bold;
color: #FFFAFB !important;
font-size: 16px;
text-shadow: 0px 1px 1px #D5DECE;
box-shadow: 2px 2px 3px #F2F2F9;
padding: 4px 25px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
background: #63B8EE;
background: linear-gradient(top, #F2070F, #FC1921);
background: -ms-linear-gradient(top, #F2070F, #FC1921);
background: -webkit-gradient(linear, left top, left bottom, from(#F2070F), to(#FC1921));
background: -moz-linear-gradient(top, #F2070F, #FC1921);
}
.testbutton11 { font-family: 'times new roman';
font-weight: bold;
color: #FFFAFB !important;
font-size: 16px;
text-shadow: 0px 1px 1px #D5DECE;
box-shadow: 2px 2px 3px #F2F2F9;
padding: 4px 25px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
background: #63B8EE;
background: linear-gradient(top, #332626, #332626);
background: -ms-linear-gradient(top, #332626, #332626);
background: -webkit-gradient(linear, left top, left bottom, from(#332626), to(#332626));
background: -moz-linear-gradient(top, #332626, #332626);
}
.testbutton31 { font-family: 'times new roman';
font-weight: bold;
color: #FFFAFB !important;
font-size: 16px;
text-shadow: 0px 1px 1px #D5DECE;
box-shadow: 2px 2px 3px #F2F2F9;
padding: 4px 25px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
background: #63B8EE;
background: linear-gradient(top, #FF1C59, #FF1C59);
background: -ms-linear-gradient(top, #FF1C59, #FF1C59);
background: -webkit-gradient(linear, left top, left bottom, from(#FF1C59), to(#FF1C59));
background: -moz-linear-gradient(top, #FF1C59, #FF1C59);
}
</style><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<table width="955" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="image/hed2.jpg" width="955" height="253" /></td>
</tr>
<tr>
<td><div align="center"><a href="st_apply.php" class="testbutton2">สมัครฝึกงาน</a><a href="st_login.php" class="testbutton11">พิมพ์ใบสมัคร </a><a href="st_apply.php" class="testbutton31">เกี่ยวกับบริษัท</a></div></td>
</tr>
</table>
<p> </p>
</body>
</html>
|
ประวัติการแก้ไข 2015-12-04 14:06:59 2015-12-04 14:55:59
|
|
|
|
Date :
2015-12-04 14:04:04 |
By :
kk_kukkik |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เอ๋ ตัวอย่างรูป หน้า st_apply.php
code ที่แปะ คือ code ของ st_apply.php หรือครับ
|
|
|
|
|
Date :
2015-12-04 14:10:08 |
By :
progamer2000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
น่าจะติด ตรง php นิแหละ ลองเอา php tag ข้างบนออกก่อนซิ แล้วรัน
|
|
|
|
|
Date :
2015-12-04 14:35:02 |
By :
progamer2000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tag อยู่ตรงไหนหรอคะ
|
|
|
|
|
Date :
2015-12-04 15:00:42 |
By :
kk_kukkik |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php ?>
|
|
|
|
|
Date :
2015-12-04 15:01:22 |
By :
progamer2000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เอา tag ออกแล้วขึ้นคะ แต่ว่า ข้อมูลในฐานไม่ขึ้นคะ
นี่คือ tag ที่ตัดเอาออกคะ
Code (PHP)
<?php require_once('Connections/con_apply.php'); ?><?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
// *** Redirect if username exists
$MM_flag="MM_insert";
if (isset($_POST[$MM_flag])) {
$MM_dupKeyRedirect="checkuser_st_apply.php";
$loginUsername = $_POST['identitycard'];
$LoginRS__query = sprintf("SELECT p_card FROM profile WHERE p_card=%s", GetSQLValueString($loginUsername, "text"));
mysql_select_db($database_con_apply, $con_apply);
$LoginRS=mysql_query($LoginRS__query, $con_apply) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
//if there is a row in the database, the username was found - can not add the requested username
if($loginFoundUser){
$MM_qsChar = "?";
//append the username to the redirect page
if (substr_count($MM_dupKeyRedirect,"?") >=1) $MM_qsChar = "&";
$MM_dupKeyRedirect = $MM_dupKeyRedirect . $MM_qsChar ."requsername=".$loginUsername;
header ("Location: $MM_dupKeyRedirect");
exit;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO profile (p_bec, txt_othde, p_dateadd, p_datestart, p_datefinish, p_mcome, p_type1, p_type2, p_type3, p_mrs, p_name, p_surname, p_nickname, p_birthday, p_age, p_card, p_phoneme, p_email, p_no, p_city, p_code, p_phonehouse, p_name2, p_relation, p_no2, p_city2, p_code2, p_phonerela, p_nameteach, p_phoneteach, p_school, p_faculty, p_branch, p_class, p_gpa, p_poso, p_club, p_position, p_perferm, p_poso1, p_club1, p_position1, p_perferm1, p_poso2, p_club2, p_position2, p_perferm2, p_speak, p_read, p_write, p_talentoth, p_verygood, p_com, p_interes, p_hope, p_intro) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['RadioGroup3'], "text"),
GetSQLValueString($_POST['txt_othde'], "text"),
GetSQLValueString($_POST['dateadd'], "text"),
GetSQLValueString($_POST['start'], "text"),
GetSQLValueString($_POST['finish'], "text"),
GetSQLValueString($_POST['RadioGroup2'], "text"),
GetSQLValueString($_POST['type1'], "text"),
GetSQLValueString($_POST['type2'], "text"),
GetSQLValueString($_POST['type3'], "text"),
GetSQLValueString($_POST['lish_sir'], "text"),
GetSQLValueString($_POST['name'], "text"),
GetSQLValueString($_POST['surname'], "text"),
GetSQLValueString($_POST['nickname'], "text"),
GetSQLValueString($_POST['birthday'], "text"),
GetSQLValueString($_POST['age'], "text"),
GetSQLValueString($_POST['identitycard'], "text"),
GetSQLValueString($_POST['phone'], "text"),
GetSQLValueString($_POST['email'], "text"),
GetSQLValueString($_POST['no'], "text"),
GetSQLValueString($_POST['list_city1'], "text"),
GetSQLValueString($_POST['code'], "text"),
GetSQLValueString($_POST['phonehouse'], "text"),
GetSQLValueString($_POST['namerelation'], "text"),
GetSQLValueString($_POST['relation'], "text"),
GetSQLValueString($_POST['no2'], "text"),
GetSQLValueString($_POST['list_city2'], "text"),
GetSQLValueString($_POST['code2'], "text"),
GetSQLValueString($_POST['phonerelation'], "text"),
GetSQLValueString($_POST['nameteac'], "text"),
GetSQLValueString($_POST['phoneteach'], "text"),
GetSQLValueString($_POST['school'], "text"),
GetSQLValueString($_POST['faculy'], "text"),
GetSQLValueString($_POST['branch'], "text"),
GetSQLValueString($_POST['class'], "text"),
GetSQLValueString($_POST['gpa'], "text"),
GetSQLValueString($_POST['poso'], "text"),
GetSQLValueString($_POST['club'], "text"),
GetSQLValueString($_POST['position'], "text"),
GetSQLValueString($_POST['perform'], "text"),
GetSQLValueString($_POST['poso1'], "text"),
GetSQLValueString($_POST['club1'], "text"),
GetSQLValueString($_POST['position1'], "text"),
GetSQLValueString($_POST['perform1'], "text"),
GetSQLValueString($_POST['poso2'], "text"),
GetSQLValueString($_POST['club2'], "text"),
GetSQLValueString($_POST['position2'], "text"),
GetSQLValueString($_POST['perform2'], "text"),
GetSQLValueString($_POST['speak'], "text"),
GetSQLValueString($_POST['read'], "text"),
GetSQLValueString($_POST['writee'], "text"),
GetSQLValueString($_POST['talenth'], "text"),
GetSQLValueString($_POST['RadioGroup1'], "text"),
GetSQLValueString($_POST['com'], "text"),
GetSQLValueString($_POST['reson'], "text"),
GetSQLValueString($_POST['hope'], "text"),
GetSQLValueString($_POST['intro'], "text"));
mysql_select_db($database_con_apply, $con_apply);
$Result1 = mysql_query($insertSQL, $con_apply) or die(mysql_error());
$insertGoTo = "st_img_upload.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
mysql_select_db($database_con_apply, $con_apply);
$query_rs_profile = "SELECT * FROM profile";
$rs_profile = mysql_query($query_rs_profile, $con_apply) or die(mysql_error());
$row_rs_profile = mysql_fetch_assoc($rs_profile);
$totalRows_rs_profile = mysql_num_rows($rs_profile);
mysql_select_db($database_con_apply, $con_apply);
$query_rs_province = "SELECT * FROM province";
$rs_province = mysql_query($query_rs_province, $con_apply) or die(mysql_error());
$row_rs_province = mysql_fetch_assoc($rs_province);
$totalRows_rs_province = mysql_num_rows($rs_province);
mysql_select_db($database_con_apply, $con_apply);
$query_rs_sir = "SELECT * FROM sir";
$rs_sir = mysql_query($query_rs_sir, $con_apply) or die(mysql_error());
$row_rs_sir = mysql_fetch_assoc($rs_sir);
$totalRows_rs_sir = mysql_num_rows($rs_sir);
?>
จะแก้ยังไงดีคะ ขอคำแนะนำหน่อยนะคะ
|
|
|
|
|
Date :
2015-12-04 15:20:24 |
By :
kk_kukkik |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ต้องค่อยๆ แปะไปทีละส่วนครับ อันไหนแปะแล้ว พังก็เอาออก
|
|
|
|
|
Date :
2015-12-04 15:23:33 |
By :
progamer2000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ที่บอกว่าฐานข้อมูลไม่ขึ้น ได้แก้ไข ไฟล์ connect หรือยังครับ เช่น user,pass,host,db
|
|
|
|
|
Date :
2015-12-04 16:17:23 |
By :
zadstoms |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|