CodeIgniter embedding database results in different html tags ( newbie here.. )

#4
[eluser]Avatar[/eluser]
in your views if you use
Code:
<?php $blah?>
wont work, have to use either:
Code:
<?=$blah?>
which does echo with semicolon or do this:
Code:
<?php echo $blah; ?>
foreach
Code:
<?php foreach($blah->result() as $poop)?>
<?=$poop?>
<?php endforeach;?>
hope this helps


Messages In This Thread
CodeIgniter embedding database results in different html tags ( newbie here.. ) - by El Forum - 03-07-2008, 02:35 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.