/ Published in: PHP

Class of store procedure in PHP with mysqli
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php class dbconexion { var $db="xxxx"; var $user="xxxx"; var $password=""; var $host="localhost"; var $conneccion; function conectarse() { return $this->conneccion; } function procedimiento($sql) { return $_displayResult; } } /* $objeto = new dbconexion(); $rs = $objeto->procedimiento("call sp_vista_ciudad();"); while($fila = $rs->fetch_assoc()) { print_r($fila); }*/ ?>
Comments
