PHP code example of fulfillment / periscope-to-mysql
1. Go to this page and download the library: Download fulfillment/periscope-to-mysql library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fulfillment / periscope-to-mysql example snippets
use Fulfillment\periscopeToMySQL\periscopeToMySQL;
$args = [
'dateStart' => "2016-01-01",
'dateEnd' => "2016-03-11",
'Warehouse' => "1,2,3",
'State' => "GA",
];
$sql = 'SELECT
[yourFirstTable.aDate:est] AS aDate,
yourSecondTable.part2
FROM
yourFirstTable
JOIN yourSecondTable ON yourFirstTable.id = yourSecondTable.id
WHERE
[yourFirstTable.recordedOn=daterange:est]
AND [yourFirstTable.warehouse=Warehouse]
AND [yourSecondTable.state=State]';
$sql = periscopeToMySQL::fillTemplate($sql, $args);