PDO

PHP + PDO + FETCH_OBJ Issue + Notice: Trying to get property of non-object

ASSUMPTIONS: I’m expecting only 1 row of data for the fetch-ing I need the fetched-data to be in the form of an stdClass object You are familiar with using PDO – PHP Data Objects This PDO error typically occurs when you try to fetch data into an stdClass object by using fetchAll() By definition fetchAll […]

How To Quickly Know Which PDO Driver Is Available For Your LAMP Stack

How To Quickly Know Which PDO Driver Is Available For Your LAMP Stack. Instead of looking all through your phpinfo()

PHP PDO + Warning: PDO::__construct() [pdo.–construct]: [2002] Invalid argument (trying to connect via unix://)

If you are trying to establish a connection handle by using PDO, you might have encountered this error: Warning: PDO::__construct() : Invalid argument (trying to connect via unix://)