RE:[help!!!] A PHP Error was encountered - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: RE:[help!!!] A PHP Error was encountered (/showthread.php?tid=26350) |
RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]maria clara[/eluser] hi to all, my console keeps on showing this message: Code: <p>Severity: Warning</p> here's my MODEL: Code: function save_detail($id,$rows0,$rows1,$rows2,$rows3,$dt) anyone has an idea??? thanks in advance, maria RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]WebsiteDuck[/eluser] In your foreach, $rows0 doesn't exist as an array, make sure you are passing it in correctly RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]maria clara[/eluser] [quote author="WebsiteDuck" date="1263290139"]In your foreach, $rows0 doesn't exist as an array, make sure you are passing it in correctly[/quote] i have used print_r(); Code: print_r($rows0); and still it shows me the error. RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]WebsiteDuck[/eluser] What did you get when you used print_r($rows0) ? RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]maria clara[/eluser] it still hows me the error with invalid argument supplied for foreach(): and it pertains to this script: foreach ($rows0 as $row0) RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]saidai jagan[/eluser] show this Code: echo '<pre>'; RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]maria clara[/eluser] [quote author="saidai jagan" date="1263292088"]show this Code: echo '<pre>'; when i tried your script it shows this in my console: Code: <pre></pre> it doesn't show anything but just that preformatted tag RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]saidai jagan[/eluser] use it in u r model Code: function save_detail($id,$rows0=array(),$rows1,$rows2,$rows3,$dt) RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]Ben Edmunds[/eluser] OK, so where are you passing in $row0 from? Post that code please. RE:[help!!!] A PHP Error was encountered - El Forum - 01-11-2010 [eluser]maria clara[/eluser] [quote author="saidai jagan" date="1263293941"]use it in u r model Code: function save_detail($id,$rows0=array(),$rows1,$rows2,$rows3,$dt) i tried your script but it shows Code: Message: Invalid argument supplied for foreach()</p> |