|
 |
|
Error ครับ...Warning: opendir(pix) [function.opendir]: failed to open dir: No error in |
|
 |
|
|
 |
 |
|
ตอบให้แล้ว กรุณารอคำตอบหน่อยนะครับผม
|
 |
 |
 |
 |
Date :
2009-05-04 18:55:13 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตัวแรก opendir ลอง ใช้คำสั่ง is_dir() ดูก่อนคับ ถ้าไม่ได้ โปรดแสดงโค้ด ผมคิดว่ามันน่าจะเกี่ยวกับ argrument ไม่ถูกต้องคับ
|
 |
 |
 |
 |
Date :
2009-05-05 08:40:47 |
By :
pjgunner |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับพี่ๆๆๆ
|
 |
 |
 |
 |
Date :
2009-05-06 08:52:42 |
By :
leehoon5 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<!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" />
<title>Virgin HITZ Fanclub</title>
</head>
<BODY>
<h1>:: ดูข้อมูล กิจกรรม HITZ FanClub::</h1>
<table width="940" border="1">
<tr bgcolor="#D3D3D3">
<td width="26">ลำดับ</td>
<td width="600">ชื่อและนามสกุลคุณ</td>
<td width="18">อายุ</td>
<td width="600">ชื่อและนามสกุลเพื่อน</td>
<td width="18">อายุ</td>
<td width="120">เบอร์ติดต่อกลับ</td>
<td width="200">คำจำกัดความสั้น ๆ ที่บอกถึงความเป็นคุณ</td>
<td width="88">วันที่สมัคร</td>
<td width="84">เวลาที่สมัคร</td>
<td width="100">หมายเลข IP เครื่องที่สมัคร</td>
<td width="88">รูปภาพคุณและเพื่อนคุณ</td>
</tr>
<?
$objConnect = mysql_connect("localhost","root","0023") or die("Error Connect to Database");
$objDB = mysql_select_db("mydatabase");
mysql_query("SET NAMES TIS620");
?>
<?
$hostname="localhost";
$username="root";
$password="0023";
$dbname="hitz";
$conn=mysql_connect($hostname,$username,$password);
if (!$conn)
{
$dberr="ไม่สามารถติดต่อกับ MySQLได้";
return false;
}
if (!mysql_select_db($dbname,$conn))
{
$dberr="ไม่สามารถเลือกใช้งานฐานข้อมูลได้";
return false;
}
$sql = 'SELECT *
FROM hitz_fanclub order by id ';
$result=mysql_db_query($dbname,$sql);
while($record=mysql_fetch_array($result)) {
echo "
<tr>
<td>$record[id]</td>
<td>$record[name]</td>
<td>$record[age]</td>
<td>$record[namef]</td>
<td>$record[agef]</td>
<td>$record[tel]</td>
<td>$record[message]</td>
<td>$record[date]</td>
<td>$record[time]</td>
<td>$record[ip]</td>
<td></td>
</tr>";
}
mysql_close();
?>
<?
$objOpen = opendir("pix");
while (($id = readdir($objOpen)) !== false)
{
echo "filename: " . $id . "<br />";
}
?>
</table>
</BODY>
</HTML>
|
 |
 |
 |
 |
Date :
2009-05-06 09:28:13 |
By :
leehoon5 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|