YourLara-banner-Come-live-life-my-way

Fetch mysql results into an array using PHP

  • Fetch mysql results into an array using PHP

    .

    Learn a bit of PHP, #phpBites A simple connection to mysql database, and selecting from a table. $connection = new \PDO(‘mysql:host=’.$yourDbHost.’;dbname=’.$yourDbName, $yourDbUserName, $yourDbPassword); $query = “SELECT col1, col2, col3,…