-
-
Save fayqLs/5969273527ac5cca70e13033b5c84087 to your computer and use it in GitHub Desktop.
ABRIR CONEXÃO COM O BANCO DE DADOS
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 | |
Transaction::open(self::$database); # ABRE A CONEXÃO | |
$id = 1; | |
$cliente = Cliente::find($id); | |
if ($cliente) { echo "Cliente: {$cliente->nome}"; } | |
TTransaction::close(); # FECHA A CONEXÃO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment