Ben CodeIgniter ile bir site yazmaya çalışıyorum ama ben PHP ile bir sorunu var. Ben bu kadar basit olduğunu eminim ve yanlış olamaz. Ama, gelen CodeIgniter sadece bir acemi hataları bilmiyorum :)
<html>
<head>
<title><?=$page_title?></title>
</head>
<body>
<?php foreach($result as $row):?>
<h3><? echo $row->title; ?></h3>
<p><? echo $row->text; ?></p>
<?php endforeach;?>
</body>
</html>
Ben bu dosyadan bir hata var:
Bir PHP hata ile karşılaşıldı
Önem: Uyarı
Message: Invalid argument supplied for foreach()
Dosya adı: izleme / helloworld_view.php
Satır sayısı: 6
Bu :) okumak için şimdiden teşekkürler