CodeIgniter Forums

Full Version: Database Query Problem.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I have a date field in the database . Inorder to get the year of the date I am using the SQL feature "YEAR(column_name)" . my problem is the query is executing but i am not able to echo it int the view file whenever i use $data-> YEAR(Column_name); it returns an error.