Welcome Guest, Not a member yet? Register   Sign In
function num_rows() Problem, well in localhost but not working on a web hosting
#1

[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?&gt;" width="150" height="120" /></div>
<h2>&lt;?=$row->titulo?&gt;</h2>
<p>&lt;?=$ordena1 = nl2br($row->bajada); echo $ordena1;?&gt;</p><p>&lt;?=$ordena2 = nl2br($row->cuerpo); echo $ordena2;?&gt;</p>
<hr />

&lt;?php endforeach; ?&gt;
&lt;?php endif; ?&gt;


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?


Messages In This Thread
function num_rows() Problem, well in localhost but not working on a web hosting - by El Forum - 03-14-2010, 09:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB