PHP Classes

File: exemplo.php

Recommend this page to a friend!
  Classes of Eric Sakamoto   Mysql e Formulario   exemplo.php   Download  
File: exemplo.php
Role: Example script
Content type: text/plain
Description: Exemplo
Class: Mysql e Formulario
Manage MySQL table record with Web based forms
Author: By
Last change:
Date: 18 years ago
Size: 557 bytes
 

Contents

Class file image Download
<?php
require 'mysql.class.php';
require
'formulario.class.php';
// require '../class.Smarty/Smarty.class.php';
//require '../fpdf/fpdf.class.php';
set_time_limit(300);
$db = new Mysql;
$form = new Formulario($db,$smarty);
$db->Con('banco de dados','localhost','user','senha');
$db->desenvolvedor = true;
$form->AT_Seguranca();
$qantidade_linha = $db->Sql('nome','tabela','coluna = valor','order by coluna');
$array = array(
 
'coluna1' => 'valor'
  'coluna2'
=> 'valor');
$db->Insert('tabela',$array);
$db->Update('tabela',$array);

?>