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 > แบบนี้ทำยังไงครับ แบบไม่ใช้ frame ผมมีช่องข้อมูล 2 ช่อง เมื่อผมกดช่องที่ 1 ที่เป็นเมนู



 

แบบนี้ทำยังไงครับ แบบไม่ใช้ frame ผมมีช่องข้อมูล 2 ช่อง เมื่อผมกดช่องที่ 1 ที่เป็นเมนู

 



Topic : 044153



โพสกระทู้ ( 3,748 )
บทความ ( 0 )

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

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



ผมมีช่องข้อมูล 2 ช่อง เมื่อผมกดช่องที่ 1 ที่เป็นเมนู จะให้ข้อมูลมาแสดงอีกช่องนึง(อยู่ในหน้าเดียวกัน)โดยไม่ใช้เฟรมจะทำได้ไหมครับ หรือถ้าหากว่าจะ include ไฟล์มาแสดง จะให้มันอยู่หน้าเดียวกันได้อย่างไรครับ ไฟล์มี 3ไฟล์
-หน้าแสดงข้อมูลทั้งหมด index
-เมนู
-รายการที่เป็นรูป
ต.ย.



Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2010-06-17 15:28:20 By : Dragons_first View : 1396 Reply : 7
 

 

No. 1



โพสกระทู้ ( 3,748 )
บทความ ( 0 )

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

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

ขอปิดกระทู้นะครับ
ปล...ทำได้แล้วเส้นผมบังภูเขาครับ 5555






Date : 2010-06-17 16:17:33 By : Dragons_first
 


 

No. 2



โพสกระทู้ ( 61 )
บทความ ( 0 )



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


ทำไงอ่ะ บอกหน่อยจิ งุงุ อยากรู้
Date : 2010-08-11 10:30:20 By : hotreplay
 

 

No. 3



โพสกระทู้ ( 3 )
บทความ ( 0 )



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


บอกหน่อยซิ
Date : 2010-08-11 12:25:59 By : phone1246
 


 

No. 4



โพสกระทู้ ( 3,748 )
บทความ ( 0 )

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

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

ก็ include มาอ่าครับ แล้วเวลากดลิงค์ก็แค่อ้างผ่าน id เท่านั้นเอง
Date : 2010-08-11 23:34:33 By : Dragons_first
 


 

No. 5



โพสกระทู้ ( 3,748 )
บทความ ( 0 )

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

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

เอาไปแกะดูนะครับ หน้า index.php เราจะ include หน้า menu.php และ catalog แบบนี้
<!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 http-equiv="Content-Type" content="text/html; charset=windows-874" />
<link rel="stylesheet" type="text/css" href="../css/css.css">
<link rel="stylesheet" type="text/css" href="../css/style.css">
<link rel="shortcut icon" href="http://www.nuengmongkol.co.th/favicon.ico">
<title>Cattalog</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url();
}
-->
</style>

<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>

</head>
<body>
<? include("head.php") ?>
<table width="950" height="113" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#EAFFEE" bgcolor="#FFFFFF">
  <tr>
    <td width="160" height="113" align="center" valign="top" scope="col"><table width="100%" height="30" border="0" cellspacing="0" cellpadding="0" class="bglin2">
  <tr>
    <th scope="col"><span class="style1">&nbsp;&nbsp;-------&nbsp;<font color="#FF3333"><b>รายการ</b></font>&nbsp;-------</span></th>
  </tr>
</table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left" valign="top" scope="col" class="style1"><? include("catalog/menu.php")?></td>
        </tr>
      </table></td>
    <td width="786" align="center" valign="top" scope="col">
   	  <table width="100%"  height="30" border="0" cellspacing="0" cellpadding="0" class="bglin2">
      <tr>
        <td scope="col">&nbsp;</td>
      </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td scope="col"><? include("catalog/index.php")?></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="950" border="0" height="10" align="center" cellpadding="0" cellspacing="0" class="bglin2">
  <tr>
    <th scope="col">&nbsp;</th>
  </tr>
</table>
<? include("floater.php")?>
</body>
</html>


อันนี้โค๊ดปรกตินะครับ


ประวัติการแก้ไข
2010-08-11 23:43:42
Date : 2010-08-11 23:39:54 By : Dragons_first
 


 

No. 6



โพสกระทู้ ( 3,748 )
บทความ ( 0 )

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

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

คราวนี้มาที่หน้า menu กันบ้าง ซึ่งผมจะเขียนแบบนี้นะครับ

<?php
require("../config/config.inc.php");
$sql= "select * from menu_catt order by id";
$result=mysql_query($sql,$dbcon);
	while($array = mysql_fetch_array($result))
   	 echo " <table width=160 border=0 cellspacing=0 cellpadding=0>
  <tr>
    <td width=20 scope=col><div align=right><img src=../Them/Class.gif width=10 height=10 border=0 /></div></td>
    <td width=160 scope=col align=left>&nbsp;<a href=?id=$array[id]>$array[name]</a></td>
  </tr>
</table>
 ";
 mysql_close($dbcon);
?>

Date : 2010-08-11 23:41:24 By : Dragons_first
 


 

No. 7



โพสกระทู้ ( 3,748 )
บทความ ( 0 )

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

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

ไฟล์อันสุดท้องครับ catalog ก็เขียนให้มันแสดงภาพปรกติ

<?
require("../config/config.inc.php");
$id=$_GET['id'];
$sql = "select * from menu_catt inner join catalog on menu_catt.t_group=catalog.t_group where menu_catt.id='$id' ";
$result = mysql_query($sql,$dbcon);
	echo"<table border=\"0\"  cellspacing=\"1\" cellpadding=\"1\"><tr>";	
	$rows = 0;
	while($array = mysql_fetch_array($result))
	{
		$rows++;
		echo "<td>";								
?>
		<a href="#">
          <?
		  		if($array["image1"]==""){
					echo "<img src=\"../../Them/No_Image.gif\" width=150 height=170 border=\"0\" onmousedown=\"MM_openBrWindow('catalog/blank.php?id=$array[id]','Cattalog','resizable=yes')\">";
				}else{
					echo "<img src=\"../../backend/product/catalog/$array[image1]\" width=\"150\" height=\"170\" border=\"0\" onmousedown=\"MM_openBrWindow('catalog/blank.php?id=$array[id]','Cattalog','resizable=yes')\">";
				}
		?>
        </a><br><font color="#69B0EB"><span class=style1>page&nbsp;<?=$array['id']?></span>
	    <?
			echo"</td>";
			if(($rows)%5==0)
			{
			echo"</tr>";
			}
			else
			{
			echo "<td>";
			}	
	}
	echo"</tr></table>";
	mysql_close($dbcon);
	?>	


ขอให้โชคดีกับการเขียนเว็บครับ
Date : 2010-08-11 23:42:55 By : Dragons_first
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : แบบนี้ทำยังไงครับ แบบไม่ใช้ frame ผมมีช่องข้อมูล 2 ช่อง เมื่อผมกดช่องที่ 1 ที่เป็นเมนู
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ 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 02
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 อัตราราคา คลิกที่นี่