|
 |
|
รบกวนผู้ทารบด้วยค่ะ อัพขึ้น host แล้ว เพิ่มข้อมูลได้ แต่ดึงข้อมูลมาแสดงไม่อ่ะค่ะ |
|
 |
|
|
 |
 |
|
โอ้โห ,,โค๊ดล่ะคับ เอารูปมาแบบนี้ไม่ตรัสรู้ได้เองอัตโนมัติคับ เอาโค๊ดส่วนที่ query แล้วก็ดึงข้อมูลมาดูคับ
|
 |
 |
 |
 |
Date :
2012-08-28 16:33:36 |
By :
ichiko |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
host เป็น linux หรือ windows ครับ
|
 |
 |
 |
 |
Date :
2012-08-28 16:34:28 |
By :
Ex-[S]i[L]e[N]t |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เป็นเพราะ $_POST แน่เลย 
|
 |
 |
 |
 |
Date :
2012-08-28 20:38:26 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คือ host ที่ใช้เป็น linux ค่ะ
|
 |
 |
 |
 |
Date :
2012-08-29 14:33:00 |
By :
nutto_221 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?
$act_id=$_GET[id];
$m_id=$_GET[m_id];
$va_id=$_GET[va_id];
$sql_act = mysql_query("select * from activity a join activity_type at on a.act_type_id=at.act_type_id inner join member mb on a.m_id=mb.m_id where a.act_id='$act_id' and a.m_id='$m_id'");
$act_arr = mysql_fetch_array($sql_act) ;
$act_m_id= $act_arr[m_id];
$m_name= $act_arr[m_fname];
$act_name= $act_arr[act_name];
$act_pic=$act_arr[act_img_profile];
$act_type= $act_arr[act_type_name];
$act_counter= $act_arr[act_counter];
$act_counup=$act_counter+1;
$sql_album = "Select * from image_act where act_id='$act_id' order by img_act_id desc " ;
$result = mysql_query($sql_album);
$row=mysql_num_rows($result);
//$path = "../images/activity/";
echo "<table>";
echo"<tr>";
echo"<td valign='top'>";
echo "<img src='activity_small/$act_pic' border='1' width='158' height='200' />";
echo "</td>";
echo"<td valign='top'>";
echo"<div class='act_wording'>";
echo "<font color='#2B60DE'><b>ชื่อกิจกรรม : </b></font>".$act_arr[act_name];"";
echo "<br />";
echo "<font color='#2B60DE'><b>ระหว่างวันที่ : </b></font>[".$act_arr[act_date_frist]."] ถึง [".$act_arr[act_date_last]."]"."";
echo "<br />";
echo "<font color='#2B60DE'><b>ที่อยู่ : </b></font>".$act_arr[act_address];"";
echo "<br />";
echo "<font color='#2B60DE'><b>รายละเอียด : </b></font><font color='#000000'><br>".$act_arr[act_detail];"</font>";
echo"</div>";
echo"</td>";
echo"</tr>";
echo"<tr>";
echo"<td>";
echo "<font color='#2B60DE'><b>ดูรูปภาพกิจกรรม </b></font>";
echo "</br>";
echo"<td>";
echo"</tr>";
echo"</table>";
if($act_m_id !=$sess_userid){
if($row >= 1)
{
$counter = 1;
$cols = 4;
echo ("<table width='100%'>\n");
for($i = 0; $i < $row/$cols; $i++) {
echo ("<tr>");
for($j=0; $j < $cols && $counter <= $row ;$j++, $counter++) {
$rows=mysql_fetch_array($result);
$strTable=" ";
$strTable.="<td align='left' valign='top' ><a href=javascript:popup('activity_show_img.php?photo=".$rows['img_act_id']."','sam',750,550)><img src='activity/".$rows['img_act_name']." ' width='100' height='100' /></a></td>";
//"<a href=javascript:popup('searchstu.php','',400,200) >ค้นหาคู่โปรเจ็ค </a>"
echo $strTable;
}
echo ("</tr>\n");
}
echo ("</table>\n");
}
}else{
if($row >= 1)
{
$counter = 1;
$cols = 4;
echo ("<table width='100%'>\n");
for($i = 0; $i < $row/$cols; $i++) {
echo ("<tr>");
for($j=0; $j < $cols && $counter <= $row ;$j++, $counter++) {
$rows=mysql_fetch_array($result);
$strTable=" ";
$strTable.="<td align='left' valign='top' ><a href=javascript:popup('activity_show_img.php?photo=".$rows['img_act_id']."&alm_id=$act_id','sam',750,550)><img src='activity/".$rows['img_act_name']." ' width='100' height='100' /></a><A HREF=\"delete_img_act.php?id_act=".$rows['img_act_id']."&m_id=".$rows[m_id]."\" onclick=\"return confirm('ยืนยันการลบรูปภาพกิจกรรมนี้ ')\"><img src='../image/del.gif' width='10' height='10' /></a></td>";
?>
|
ประวัติการแก้ไข 2012-08-29 21:46:05 2012-08-29 21:59:24
 |
 |
 |
 |
Date :
2012-08-29 21:45:27 |
By :
nutto_221 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|