I am working in three different servers which are unix/windows/unix.
case-1: In my loacl server which is unix I have one table name Country_master and its fields pk_CountryId, CountryName etc.
case-2:In my Demo server which is window table name changed automatically to country_master.
case-3:In my Live server which is unix table name country_master.
But in my code table name i taken is Country_master so it gives me error like this
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'markets.Country_master' doesn't exist'.
Can i have any way not to change table name in database and also in code but it takes lower case?
If you are using MySQL you can set table and column name case sensitive in my.conf by using following directive
Do not forget the restart server after update. It would be better if you use same column names in all servers