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 > รบกวนพี่ๆ อีกแล้วค่ะ ช่วยแก้ไขให้หน่อยคะคือหนูดึงข้อมูลข่าวมาที่หน้าเว็บแล้ว จะใช้ bootstrap Modal คลิกที่รายละเอียดของข่าวจะโชว์ข้อมูลของข่าวตาม id ที่ดึงมา แต่หนูลองทำแล้วมันโชว์ซ้ำแค่ id ล่าสุดที่บันทึกค่ะ



 

รบกวนพี่ๆ อีกแล้วค่ะ ช่วยแก้ไขให้หน่อยคะคือหนูดึงข้อมูลข่าวมาที่หน้าเว็บแล้ว จะใช้ bootstrap Modal คลิกที่รายละเอียดของข่าวจะโชว์ข้อมูลของข่าวตาม id ที่ดึงมา แต่หนูลองทำแล้วมันโชว์ซ้ำแค่ id ล่าสุดที่บันทึกค่ะ

 



Topic : 131005



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



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




ช่วยแก้ไขให้หน่อยคะคือหนูดึงข้อมูลข่าวมาที่หน้าเว็บแล้ว จะใช้ bootstrap Modal คลิกที่รายละเอียดของข่าวจะโชว์ข้อมูลของข่าวตาม id ที่ดึงมา แต่หนูลองทำแล้วมันโชว์ซ้ำแค่ id ล่าสุดที่บันทึกค่ะ

4444
database.sql
Code (SQL)
CREATE TABLE `articles` (
  `a_id` int(11) NOT NULL auto_increment,
  `a_type_id` int(11) NOT NULL,
  `title` varchar(200) NOT NULL,
  `txtMessage` text NOT NULL,
  `img` varchar(200) NOT NULL,
  `m_username` varchar(100) NOT NULL,
  `datesave` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`a_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;

-- 
-- dump ตาราง `articles`
-- 

INSERT INTO `articles` VALUES (10, 1, 'ไอที 24 ชัวโมง', '<p>เชิญร่วมกิจกรรมไอที 24 ชั่วโมงเชิญร่วมกิจกรรมไอที 24 ชั่วโมง</p>\r\n', '155504366520180508_094121.jpg', '', '2018-05-08 09:41:21');
INSERT INTO `articles` VALUES (9, 3, 'เทรน 2018', '<p>เชิญร่วมกิจกรรมธรรมะติดจรวจ</p>\r\n', '34224158520180508_093423.jpg', '', '2018-05-08 09:34:23');
INSERT INTO `articles` VALUES (8, 1, 'เชิญชวนสัมนากระทรวงพลังงาน', '<p>เชิญชวนสัมนากระทรวงพลังงานเชิญชวนสัมนากระทรวงพลังงาน</p>\r\n', '20215720720180508_094221.jpg', '', '2018-05-08 09:43:32');
INSERT INTO `articles` VALUES (11, 4, 'ปรับราคารถโดยสาร', '<p>ปรับราคารถโดยสารปรับราคารถโดยสารปรับราคารถโดยสาร</p>\r\n', '150380567120180508_094515.jpg', '', '2018-05-08 09:45:15');
INSERT INTO `articles` VALUES (12, 1, 'อุปกรณ์ไอทีลดราคา', '<p>อุปกรณ์ไอทีลดราคาอุปกรณ์ไอทีลดราคาอุปกรณ์ไอทีลดราคา</p>\r\n', '84740789020180508_094928.jpg', '', '2018-05-08 09:49:28');
INSERT INTO `articles` VALUES (13, 0, 'ไอที อินเทรนด์', '<p>ไอที อินเทรนด์ไอที อินเทรนด์ไอที อินเทรนด์</p>\r\n', '38451900920180508_095053.jpg', '', '2018-05-08 09:50:53');
INSERT INTO `articles` VALUES (14, 1, 'ลดราคาอุปกรณ์ไอที', '<p>ลดราคาอุปกรณ์ไอทีลดราคาอุปกรณ์ไอที</p>\r\n', '33371229920180508_095413.jpg', '', '2018-05-08 09:54:13');


connectdb.php
Code (PHP)
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connectdb = "localhost";
$database_connectdb = "mydatabase";
$username_connectdb = "root";
$password_connectdb = "";
$connectdb = mysql_pconnect($hostname_connectdb, $username_connectdb, $password_connectdb) or trigger_error(mysql_error(),E_USER_ERROR); 
mysql_query("SET NAMES UTF8");
?>


ดึงข้อมูลจาก data base
Code (PHP)
<?php require_once('../Connections/connectdb.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $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;
}
}

mysql_select_db($database_connectdb, $connectdb);
$query_show_articles = "SELECT * FROM articles ORDER BY a_id ASC";
$show_articles = mysql_query($query_show_articles, $connectdb) or die(mysql_error());
$row_show_articles = mysql_fetch_assoc($show_articles);
$totalRows_show_articles = mysql_num_rows($show_articles);
?>
<?php do { ?>
  <div class="col-xs-4 col-sm-4 col-md-4" align="left">
    <img src="img/<?php echo $row_show_articles['img']; ?>" width="300" style="padding-bottom: 15px, left-rigth: 10px" /><br/><br/>
    หัวข้อข่าว : <?php echo $row_show_articles['title']; ?><br/>
    รายละเอียด : <?php echo $row_show_articles['txtMessage']; ?><br/><br/>
    </div>
  <?php } while ($row_show_articles = mysql_fetch_assoc($show_articles)); ?>
<!-- 
<div class="row">
  <div class="col-lg-4 col-md-6 box wow bounceInUp" data-wow-duration="1.4s">
    <div align="center"> <img src="img/<?php echo $row_show_articles['img']; ?>" width="300" style="padding-bottom: 15px, left-rigth: 10px" />
      <h4 class="title" align="left"><a href='#myModal1' data-toggle='modal'>หัวข้อข่าว : <?php echo $row_show_articles['title']; ?></a></h4>
    </div>
  </div>
           
  
  <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog  modal-lg"  >
      <div class="modal-content"  >
        <div class="modal-header" align="center">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <h5 class="modal-title" id="myModalLabel" style="color:#006305; font-size:50px;  font-size:20px; border-bottom: 2px #ecb42d dotted;" align="left">&nbsp; หัวข้อข่าว : <?php echo $row_show_articles['title']; ?></h5>
          <br/>
          <img src="img/<?php echo $row_show_articles['img']; ?>" width="500" style="padding-bottom: 15px, left-rigth: 10px" /> <br/>
          <br/>
          <a style="padding-bottom:10px; font-size:16px; font-size:18px; ">&nbsp; รายละเอียด :<?php echo $row_show_articles['txtMessage'];?></a></div>
      </div>
    </div>
  </div>
</div>
  -->
<?php
mysql_free_result($show_articles);
?>



new.php include ข่าวมาโชว์ค่ะ
Code (PHP)
<?php require_once('../Connections/connectdb.php'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>TPBR NEW</title>
	<!-- core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/font-awesome.min.css" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/owl.carousel.css" rel="stylesheet">
    <link href="css/owl.transitions.css" rel="stylesheet">
    <link href="css/main.css" rel="stylesheet">
 <!--	<link href="css/dataTables.bootstrap4.min.css" rel="stylesheet">  -->
    <link href="css/bootstrap.css" rel="stylesheet"> 
	<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
	<script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="js/dataTables.bootstrap4.min.js"></script>
 

    <header id="header">
        <nav id="main-menu" class="navbar navbar-default navbar-fixed-top top-nav-collapse" role="banner">
            <div class="container">
                <div class="navbar-header">
                  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                 <?php include('logo.php');?>
				 </div>
				
                <div class="collapse navbar-collapse navbar-right">
                    <ul class="nav navbar-nav">
                        <li class="scroll"><a href="board.php">Board </a></li>
						<li class="scroll active"><a href="new.php">New </a></li>
						<li class="scroll"><a href="form.php">Form </a></li>
                        <li class="scroll"><a href="data.php">Knowledge</a></li>
                        <li class="scroll"><a href="Contact.php">Contact</a></li>                        
                    </ul>
                </div>
            </div><!--/.container-->
        </nav><!--/nav-->
    </header><!--/header-->

	<section>
        <div class="container">
            <div class="section-header">
            <h2 class="section-title text-center wow fadeInDown">TPBR NEW </h2>
            <p class="text-center wow fadeInDown">Please use the word most images and speech communication should use words that are easy to understand.</p>  
 
			</div>
		</div>
	</section>
    
<!-- start show articles -->
<div class="container">
  <div class="row">
  <div class="col-lg-12">
  
 <?php include('show_articles_index.php');?> 
	
        </div>
	</div>
  </div>
<!-- end show  articles -->


<!-- start footer -->
 
 <?php include('footer.php');?>

 <!-- end footer -->

</body>
</html>




Tag : PHP, MySQL









ประวัติการแก้ไข
2018-05-08 16:36:45
Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2018-05-08 16:34:56 By : panthipa View : 793 Reply : 7
 

 

No. 1



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

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

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

id modal มันซ้ำกันครับ
ลองใช้แบบข้างล่างนี้ดู

Code (PHP)
<?php require_once('../Connections/connectdb.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $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;
}
}

mysql_select_db($database_connectdb, $connectdb);
$query_show_articles = "SELECT * FROM articles ORDER BY a_id ASC";
$show_articles = mysql_query($query_show_articles, $connectdb) or die(mysql_error());
$row_show_articles = mysql_fetch_assoc($show_articles);
$totalRows_show_articles = mysql_num_rows($show_articles);
?>
<?php 
$i=1;
while ($row_show_articles = mysql_fetch_assoc($show_articles)){ 
?>
  <div class="col-xs-4 col-sm-4 col-md-4" align="left">
    <img src="img/<?php echo $row_show_articles['img']; ?>" width="300" style="padding-bottom: 15px, left-rigth: 10px" /><br/><br/>
    หัวข้อข่าว : <?php echo $row_show_articles['title']; ?><br/>
    รายละเอียด : <?php echo $row_show_articles['txtMessage']; ?><br/><br/>
    </div>
<div class="row">
  <div class="col-lg-4 col-md-6 box wow bounceInUp" data-wow-duration="1.4s">
    <div align="center"> <img src="img/<?php echo $row_show_articles['img']; ?>" width="300" style="padding-bottom: 15px, left-rigth: 10px" />
      <h4 class="title" align="left"><a href='#myModal<?=$i?>' data-toggle='modal'>หัวข้อข่าว : <?php echo $row_show_articles['title']; ?></a></h4>
    </div>
  </div>
           
  
  <div class="modal fade" id="myModal<?=$i?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog  modal-lg"  >
      <div class="modal-content"  >
        <div class="modal-header" align="center">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <h5 class="modal-title" id="myModalLabel" style="color:#006305; font-size:50px;  font-size:20px; border-bottom: 2px #ecb42d dotted;" align="left">&nbsp; หัวข้อข่าว : <?php echo $row_show_articles['title']; ?></h5>
          <br/>
          <img src="img/<?php echo $row_show_articles['img']; ?>" width="500" style="padding-bottom: 15px, left-rigth: 10px" /> <br/>
          <br/>
          <a style="padding-bottom:10px; font-size:16px; font-size:18px; ">&nbsp; รายละเอียด :<?php echo $row_show_articles['txtMessage'];?></a></div>
      </div>
    </div>
  </div>
</div>
 
<?php
$i++;
  }
mysql_free_result($show_articles);
?>










ประวัติการแก้ไข
2018-05-08 17:09:16
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2018-05-08 17:08:17 By : mongkon.k
 


 

No. 2



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



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


ตอบความคิดเห็นที่ : 1 เขียนโดย : mongkon.k เมื่อวันที่ 2018-05-08 17:08:17
รายละเอียดของการตอบ ::
โค้ดที่พี่แก้ไขรันแล้วได้ตามต้องการ แต่ออกมาแบบนี้คะ
ีีี5555

หนูลองปิดโค้ดบางส่วน ก็ได้ตามต้องการคะพี่ แต่มันเรียงข่าวแนวตั้ง รบกวนช่วยแก้หน่อยคะ
6666

ส่วนโค้ดคะ
Code (PHP)
<?php require_once('../Connections/connectdb.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $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;
}
}

mysql_select_db($database_connectdb, $connectdb);
$query_show_articles = "SELECT * FROM articles ORDER BY a_id ASC";
$show_articles = mysql_query($query_show_articles, $connectdb) or die(mysql_error());
$row_show_articles = mysql_fetch_assoc($show_articles);
$totalRows_show_articles = mysql_num_rows($show_articles);
?>
<?php 
$i=1;
while ($row_show_articles = mysql_fetch_assoc($show_articles)){ 
?>
 <!-- <div class="col-xs-4 col-sm-4 col-md-4" align="left">
    <img src="img/<?php echo $row_show_articles['img']; ?>" width="300" style="padding-bottom: 15px, left-rigth: 10px" /><br/><br/>
    หัวข้อข่าว : <?php echo $row_show_articles['title']; ?><br/>
    รายละเอียด : <?php echo $row_show_articles['txtMessage']; ?><br/><br/>
    </div>  -->
<div class="row">
  <div class="col-lg-4 col-md-6 box wow bounceInUp" data-wow-duration="1.4s">
    <div align="center"> <img src="img/<?php echo $row_show_articles['img']; ?>" width="300" style="padding-bottom: 15px, left-rigth: 10px" />
      <h4 class="title" align="left"><a href='#myModal<?=$i?>' data-toggle='modal'>หัวข้อข่าว : <?php echo $row_show_articles['title']; ?></a></h4>
    </div>
  </div>
           
  
  <div class="modal fade" id="myModal<?=$i?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog  modal-lg"  >
      <div class="modal-content"  >
        <div class="modal-header" align="center">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <h5 class="modal-title" id="myModalLabel" style="color:#006305; font-size:50px;  font-size:20px; border-bottom: 2px #ecb42d dotted;" align="left">&nbsp; หัวข้อข่าว : <?php echo $row_show_articles['title']; ?></h5>
          <br/>
          <img src="img/<?php echo $row_show_articles['img']; ?>" width="500" style="padding-bottom: 15px, left-rigth: 10px" /> <br/>
          <br/>
          <a style="padding-bottom:10px; font-size:16px; font-size:18px; ">&nbsp; รายละเอียด :<?php echo $row_show_articles['txtMessage'];?></a></div>
      </div>
    </div>
  </div>
</div>
 
<?php
$i++;
  }
mysql_free_result($show_articles);
?>


แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2018-05-08 17:34:30 By : panthipa
 

 

No. 3



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

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

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

Code (JavaScript)
  $('body').on('hidden.bs.modal', '.modal', function (event) {
        $(this).removeData('bs.modal');
    });

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2018-05-08 20:55:01 By : mr.win
 


 

No. 4



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



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


ตอบความคิดเห็นที่ : 3 เขียนโดย : mr.win เมื่อวันที่ 2018-05-08 20:55:01
รายละเอียดของการตอบ ::
ขอบคุณคะพี่ แต่หนูลองแล้วยังเหมือนเดิมคะ

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2018-05-09 15:45:45 By : panthipa
 


 

No. 5



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

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

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

ตอบความคิดเห็นที่ : 4 เขียนโดย : panthipa เมื่อวันที่ 2018-05-09 15:45:45
รายละเอียดของการตอบ ::
Code (PHP)
<?php require_once('../Connections/connectdb.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $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;
}
}

mysql_select_db($database_connectdb, $connectdb);
$query_show_articles = "SELECT * FROM articles ORDER BY a_id ASC";
$show_articles = mysql_query($query_show_articles, $connectdb) or die(mysql_error());
$row_show_articles = mysql_fetch_assoc($show_articles);
$totalRows_show_articles = mysql_num_rows($show_articles);
?>
<?php 
$i=1;
while ($row_show_articles = mysql_fetch_assoc($show_articles)){ 
?>
<div class="row">
  <div class="col-xs-4 col-sm-4 col-md-4" align="left">
    <img src="img/<?php echo $row_show_articles['img']; ?>" width="300" style="padding-bottom: 15px, left-rigth: 10px" /><br/><br/>
    หัวข้อข่าว : <?php echo $row_show_articles['title']; ?><br/>
    รายละเอียด : <?php echo $row_show_articles['txtMessage']; ?><br/><br/>
    </div>
  <div class="col-lg-4 col-md-6 box wow bounceInUp" data-wow-duration="1.4s">
    <div align="center"> <img src="img/<?php echo $row_show_articles['img']; ?>" width="300" style="padding-bottom: 15px, left-rigth: 10px" />
      <h4 class="title" align="left"><a href='#myModal<?=$i?>' data-toggle='modal'>หัวข้อข่าว : <?php echo $row_show_articles['title']; ?></a></h4>
    </div>
  </div>
           
  
  <div class="modal fade" id="myModal<?=$i?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog  modal-lg"  >
      <div class="modal-content"  >
        <div class="modal-header" align="center">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <h5 class="modal-title" id="myModalLabel" style="color:#006305; font-size:50px;  font-size:20px; border-bottom: 2px #ecb42d dotted;" align="left">&nbsp; หัวข้อข่าว : <?php echo $row_show_articles['title']; ?></h5>
          <br/>
          <img src="img/<?php echo $row_show_articles['img']; ?>" width="500" style="padding-bottom: 15px, left-rigth: 10px" /> <br/>
          <br/>
          <a style="padding-bottom:10px; font-size:16px; font-size:18px; ">&nbsp; รายละเอียด :<?php echo $row_show_articles['txtMessage'];?></a></div>
      </div>
    </div>
  </div>
</div>
 
<?php
$i++;
  }
mysql_free_result($show_articles);
?>



แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2018-05-10 14:25:57 By : mongkon.k
 


 

No. 6



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



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


ตอบความคิดเห็นที่ : 5 เขียนโดย : mongkon.k เมื่อวันที่ 2018-05-10 14:25:57
รายละเอียดของการตอบ ::
ยังเป็นแบบนี้ยุคะพี่
55555

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2018-05-10 17:17:07 By : panthipa
 


 

No. 7



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



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


หน้า show_articles_index.php เรียกใช้งาน Modal ใช้งานได้ปกตินะคะ แต่มีปัญหาที่หน้า new.php ที่โชว์ข้อมูลเป็นแนวตั้ง
999
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2018-05-11 11:37:22 By : panthipa
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : รบกวนพี่ๆ อีกแล้วค่ะ ช่วยแก้ไขให้หน่อยคะคือหนูดึงข้อมูลข่าวมาที่หน้าเว็บแล้ว จะใช้ bootstrap Modal คลิกที่รายละเอียดของข่าวจะโชว์ข้อมูลของข่าวตาม id ที่ดึงมา แต่หนูลองทำแล้วมันโชว์ซ้ำแค่ id ล่าสุดที่บันทึกค่ะ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ 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 05
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 อัตราราคา คลิกที่นี่