Query result error undefined variable |
$page_content is an array, you should use row_array() instead of result_array() if you have only one row and you wan to access $page_content['title']. The way it is now, you would need to write $page_content[0]['title'].
If you really have multiple row, you need to loop through it with a foreach(). |
Messages In This Thread |
Query result error undefined variable - by skoobi - 08-23-2015, 02:29 AM
RE: Query result error undefined variable - by includebeer - 08-23-2015, 06:52 AM
RE: Query result error undefined variable - by skoobi - 08-23-2015, 08:04 AM
RE: Query result error undefined variable - by includebeer - 08-23-2015, 08:36 AM
RE: Query result error undefined variable - by skoobi - 08-23-2015, 09:24 AM
|