Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > ช่วยดูการส่งค่าทีครับ จะทำไงมันไม่ยอมส่งค่ามาที่เพจ pic_all.php ครับ file_all1.php ส่งค่า พ.ศ.มาหน้า file_all2.php



 

ช่วยดูการส่งค่าทีครับ จะทำไงมันไม่ยอมส่งค่ามาที่เพจ pic_all.php ครับ file_all1.php ส่งค่า พ.ศ.มาหน้า file_all2.php

 



Topic : 033327

Guest




จะทำไงมันไม่ยอมส่งค่ามาที่เพจ pic_all.php ครับ file_all1.php ส่งค่า พ.ศ.มาหน้า file_all2.php
แล้วจะให้หน้า file_all2.php ส่งค่ารหัส ของภาพนะครับ แต่ทำไมมันไม่ส่งค่ารหัสภาพไปที่ pic_all.php ครับ ดูให้ทีครับผม
ติดมาหลายวันแล้วครับ


file_all1.php<อันนี้ส่งค่าไปเพจfile_all2.phpผ่านแล้วครับ>

Code (PHP)
<? 
include ("connect.php");

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
</style><head>
<meta http-equiv=Content-Type content="text/html; charset=windows-874">
<title>:: ข่าวทั่วไป ::</title>
<link href="css/home_style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #D8D8D8;
	color: #000;
}
.style1 {font-size: x-small}
-->
</style></head>

<body>

<table width="600" border="1" align="center"bgcolor="#FFFFFF">
  <tr >
    <td width="5%"><? //include ("left_menu.php");?></td>
    <td width="75%" valign="top"  ><img src="Images/bar/tt.gif" width="623" height="35"><br><font size="2">
       	 		 </font>
	<br><font size="2"><?		
	$sql=mysql_query("select * from pic")or die(mysql_error());
$yea=mysql_query("select DISTINCT year_pic from pic  order by year_pic desc")or die (mysql_error());
$num=mysql_num_rows($sql);
	?></font>

    		<? 
		while($y=mysql_fetch_array($yea)){
		?>
		<img src="Images/yellow.gif" width="7" height="11" border="0"> 
		<font size="2"><a href="/teacher/files_all2.php?id=<? echo $y[year_pic];?>">ภาพกิจกรรมประจำปี&nbsp;พ.ศ.&nbsp;<? echo $y["year_pic"] ."<BR>";
	}
	?> </a></font></td>
  </tr>
</table>
</body>
</html>



file_all2.php<อันนี้ส่งค่าidไปเพจpic_all.php แต่มันไม่ยอมออกตรง url เพราะอะไรครับ และต้องทำไง >

Code (PHP)
<? 
include ("connect.php");

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=tis-620">
<title>:: ข่าวทั่วไป ::</title>
<link href="css/home_style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #D8D8D8;
	color: #000;
}
.style1 {font-size: x-small}
-->
</style></head>

<body>

<table width="600" border="1" align="center"bgcolor="#FFFFFF">
  <tr >
    <td width="5%"><? //include ("left_menu.php");?></td>
    <td width="75%" valign="top"  ><img src="Images/bar/tt.gif" width="623" height="35"><br><font size="2">
       	 		 </font>
	<br><font size="2">
	<?	 
	$sql1=mysql_query("select * from pic")or die(mysql_error());
$yea=mysql_query("select DISTINCT name_pic from pic WHERE year_pic = '".$_GET['id']."' order by name_pic desc")or die (mysql_error());

	$num=mysql_num_rows($sql1);
	


  		while($y=mysql_fetch_array($yea)){
	
		?>
		<img src="Images/yellow.gif" width="7" height="11" border="0"> 
		<font size="2"><a href="/teacher/pic_all.php?id=<? echo $y[id_pic];?>">&nbsp;<? echo $y["name_pic"] ."<BR>";

	}
	?> </a></font></td>
  </tr>
</table>


</body>
</html>

ส่วนอันนี้เพจ pic_all.php


Code (PHP)
<head>
<? 	
include('connect.php');
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874"></head>
<?   
$sql1=mysql_query("select id_pic from pic where id_pic='$_GET[id_pic]' ")or die(mysql_error());
$yea=mysql_query("select DISTINCT year_pic from pic WHERE year_pic = '".$_GET['id']."' order by id_pic desc")or die (mysql_error());
$num=mysql_num_rows($sql1);


?>


<?  
if(isset($_GET[n])){$en=9*$_GET[n]; $st=$en-9;}else{$st=0;$en=9;}
$sql=mysql_query("select * from pic ")or die(mysql_error());
$num=mysql_num_rows($sql);
?>
<body>

<?
while($y=mysql_fetch_array($yea)){
?>
<table width="782" border="0">
  <tr>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;รวมภาพกิจกรรมประจำปีพ.ศ.&nbsp;<? echo $y[year_pic];//echo $_POST[id_pic];?></td>
  </tr>
</table>
<br>
<table width="782" border="0" align="center" cellpadding="0" cellspacing="0" arlign="center">
  <tr>
  		<td width="61" valign="top">
							
	</td>
		        
				<? for($i=1;$i<4;$i++){?>
      <tr>
		<?	
 
    
		$sql=mysql_query("select * from pic order by id_pic desc limit $st,3");
		while($a=mysql_fetch_array($sql)){

?>	

        <td><center>
		<table width="143" border="1" cellspacing="0" cellpadding="0">
            <tr>
              <td width="139">
              <table width="151" border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>&nbsp;&nbsp;ชื่อภาพ  <? echo $a[name_pic];?></td>
                </tr>
                <tr>
                  <td width="150" rowspan="4"><img src="Images/activity/<? echo str_pad($a[id_pic], 3, "0", STR_PAD_LEFT) ."<BR>";
	}
	?>.jpg" width="145" height="159" border="0"></a></td>         
                </tr>
                <tr>                </tr>
                <tr>                </tr>
                <tr>                </tr>
              </table></td>        
            </tr>
          </table></center>
		  </td>	  <? }?>					
      </tr><tr>
        <td align="center">
		<?  
	  $p=$num/9;
	  settype($p,'INT');
	if($p>=1){
  $s=$num%9;
  if($s>0){  $p=$p+1;}
  for($i=1;$i<=$p;$i++){
  echo '| <a href=auction.php?n='.$i.'>'.$i.' </a>|';
  } } ?></td></tr><? $st=$st+3;}?>
</table></td>
  </tr>
</table> 
 
</body>
</html>





Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2009-10-21 10:26:44 By : birdkung View : 711 Reply : 1
 

 

No. 1



โพสกระทู้ ( 1,528 )
บทความ ( 1 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


Code
<font size="2"><a href="/teacher/pic_all.php?id=<? echo $y["id_pic"];?>">&nbsp;<? echo $y["name_pic"] ."<BR>";


ตรวจสอบตรง address bar ด้วยนะครับว่าค่าไปรึปล่าว






Date : 2009-10-21 10:48:30 By : Sek-Artdrinker
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยดูการส่งค่าทีครับ จะทำไงมันไม่ยอมส่งค่ามาที่เพจ pic_all.php ครับ file_all1.php ส่งค่า พ.ศ.มาหน้า file_all2.php
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 04
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่