[eluser]changereturnssuccess[/eluser]
hello all, I'm doing my first application with CodeIgniter. all is well in localhost but in the web hosting, the following code gives me this message
the code. is a view
Code:
<?php if($query->num_rows()>0): ?>
<?php foreach($query->result() as $row): ?>
<div class="img_thumb" style="float:left; width:150px; height:120px; margin:10px;"><img >thumb?>" width="150" height="120" /></div>
<h2><?=$row->titulo?></h2>
<p><?=$ordena1 = nl2br($row->bajada); echo $ordena1;?></p><p><?=$ordena2 = nl2br($row->cuerpo); echo $ordena2;?></p>
<hr />
<?php endforeach; ?>
<?php endif; ?>
the message.
Quote:Fatal error: Call to a member function num_rows() on a non-object in /home/pablo/public_html/codei/system/database/DB_active_rec.php on line 1080
something is wrong with web hosting?. in the localhost everything works well
any suggestions?