PHP Classes

File: examples/store_tosql.php

Recommend this page to a friend!
  Classes of Everton da Rosa  >  XtPHP  >  examples/store_tosql.php  >  Download  
File: examples/store_tosql.php
Role: Example script
Content type: text/plain
Description: Example script
Class: XtPHP
General purpose library of utility classes
Author: By
Last change:
Date: 8 years ago
Size: 485 bytes
 

Contents

Class file image Download
<?php

require '../store.php';
require
'../utils.php';

require
'store.php';

$sql = XtStore::toSQL($store, 'nome_da_tabela');//utiliza os nomes de campos do store como nomes de campos da tabela
XtUtils::printr($sql);

$sql = XtStore::toSQL($store, 'nome_da_tabela', array('id', 'name'));//utiliza os nomes de campos personalizados
XtUtils::printr($sql);

$sql = XtStore::toSQL($store, 'nome_da_tabela', array('id', 'name'), true);//cria estrutura da tabela
XtUtils::printr($sql);

?>