Welcome Guest, Not a member yet? Register   Sign In
Query result error undefined variable
#4

$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().
Reply


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, 08:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB