我有這樣的代碼:錯誤opennig對話框的JQuery表中的
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)){
if($i++%2==0){
$color="#FFFFFF";
}else{
$color="#CCCCCC";
}
?>
<tr bgcolor='<?php echo $color; ?>' onmouseover="this.style.background='#ABFB04';" onmouseout="this.style.background='<?php echo $color; ?>';">
<?php
echo "<td class=tablelist>";
echo $row["ICAO"] . '</td><td class=tablelist>';
echo $row["Name"] . '</td><td class=tablelist>';
echo $row["WeightEmpty"] . '</td><td class=tablelist>';
echo $row["WeightFull"] . '</td><td class=tablelist>';
echo $row["CargoFull"] . '</td><td class=tablelist>';
echo $row["Range"] . '</td><td class=tablelist>';
echo $row["Price"] . '</td><td class=tablelist>';
echo $row["FirstClassSeats"] . '</td><td class=tablelist>';
echo $row["BusinessClassSeats"] . '</td><td class=tablelist>';
echo $row["EconomyClassSeats"]. '</td><td class=tablelist>';
echo "<img class='editaircraft' src='./images/info.png'></td></tr>";
?>
<script>
$(function() {
$("#editaircraftdialog").dialog({
autoOpen: false,
width: 425
});
$(".editaircraft").click(function() {
$("#editaircraftdialog").dialog("open");
return false;
});
});
</script>
<div id="editaircraftdialog" title="Edit Aircraft">
<?php require_once('./edit_aircraft.php?icao=1'); ?>
</div>
<?php
}
echo "</table>";
$pagination->render();
?>
It's表。但它只顯示一行,當它必須是3時。如果我在editaircraftdialog()中刪除了這個require,它會很有趣。但我有其他的錯誤,如果我的info.png像我看到的對話框中單擊但它表明我這個錯誤:
Warning: require_once(./edit_aircraft.php?icao=1): failed to open stream: No such file or directory in C:\xampp\htdocs\airvirtus\albrep\aircrafts_list.php on line 135
Fatal error: require_once(): Failed opening required './edit_aircraft.php?icao=1' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\airvirtus\albrep\aircrafts_list.php on line 135
哪裏是你的文件'edit_aircraft.php'和'aircrafts_list.php'在什麼位置? – Vimalnath
edit_aircraft.php和aircrafts_list.php是否在相同的路徑/位置? – Vimalnath
祝賀..ü想通了錯誤所在..... – bipen