Skip to content
Advertisement

PDOException:SQLSTATE[42S22]:Column not found: 1054 Unknown column ‘tbl_destinations.id’ in ‘where clause’ in /var/www/html/…Connection.php:338

my id field in my database is des_id , how can i change it to des_id?

JavaScript

Advertisement

Answer

Your code looks good to me.

Try setting this in your Destination Model:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement