PHP | Load Data Infile to insert csv data into Mysql with PHP

| By Webner

Problem: How to insert csv data into mysql table with mysql query in php. What problems usually you face with this and how to resolve them. Description: I have csv file with thousands of records. I want to insert these

Heroku | The datasource configuration “default” was not found in database.php

| By Webner

Heroku throwing ERROR: “The datasource configuration “default” was not found in database.php” with database configuration already present for cakephp app. In one of our cakephp projects hosted on Heroku we used PostgreSql database. For configuring the database to connect to

CakePHP | How to handle special characters (like apostrophes) in queries

| By Webner

Let us take an example: We have table employees with following fields: id int primary key, name varchar(50), city varchar(50) We have following records in the table: (1, isha, amr); (2, Hamlet’s, ghy); (3, éhjj, amr); 2nd and 3rd records

PostgreSQL | Create a connection to a local postgres database in pgAdmin |||

| By Webner

Steps to create a connection to a local postgres database in pgAdmin ||| : 1. Make sure PostgresSql and its components should be installed in ubuntu system. 2. Check what databases are available in postgresSql through terminal 3. Login to