Last active
November 16, 2015 18:28
-
-
Save fxcosta/f84c09382662a4b059ca to your computer and use it in GitHub Desktop.
Exemplo de uso do Respect Relational no OpenCart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__.'/vendor/autoload.php'; | |
$respect = new \Respect\Relational\Mapper(new PDO('mysql:host=localhost;port=3306;dbname=irmaos_queiroz','root','')); | |
//$res = $respect->select('*')->from('oc_product')->fetchAll(); | |
//var_dump($res); | |
$res = $respect->oc_product(array("model =" => "78501000"))->fetchAll(); | |
var_dump($res); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment