PHP FUNCTIONS - INSERT, UPDATE AND LIST //FUNCTION PARA ADICIONAR FORMULARIOS + ITENS NO BANCO DE DADOS //PARA USAR ESSA FUNCTION, A TABELA E AS COLUNAS DEVEM SER CRIADAS NO SEU BANCO DE DADOS //DE ACORDO COM OS SEUS ARRAYS A SEGUIR: "select", "collum" => "2", "name" => "numero", "placeholder" => "Número", "required" => "yes", "select_info" => array("type" => "primary", "infos" => array('1' => "Select 1", '2' => "Select 2", '3' => "Select 3", '4' => "Select 4") ) ), //SELECT MONTADO VIA BANCO DE DADOS, BASTA FORNECER O BANCO DE DADOS E COLUNA:: array("type" => "select", "collum" => "2", "name" => "nome", "placeholder" => "Nome", "required" => "yes", "select_info" => array("type" => "database", "infos" => array('database' => "base_teste_select", 'collum' => "nome") ) ), //OUTROS INPUTS COM OUTROS TYPES:: array("type" => "text", "collum" => "1", "name" => "sobrenome", "placeholder" => "Sobrenome", "required" => "no"), array("type" => "textarea", "collum" => "1", "name" => "mensagem", "placeholder" => "Mensagem", "required" => "no"), array("type" => "img", "collum" => "1", "name" => "imagem", "placeholder" => "Imagem", "required" => "no") ); gerando_formulario($inputs_do_formulario, 'Adicionar Itens', 'base_teste', 'insert', 'null'); ?> "imagem", "placeholder" => "Imagem", "type" => "img"), array("database" => "sobrenome", "placeholder" => "Sobrenome", "type" => "text"), array("database" => "mensagem", "placeholder" => "Mensagem", "type" => "text"), ); gerando_listagem($inputs_list_html, 'base_teste', '5', 'Listagem de Test', 'edit.php?id='); ?> //FUNCTION PARA EDITAR FORMULARIOS + ITENS NO BANCO DE DADOS //PARA USAR ESSA FUNCTION, A TABELA E AS COLUNAS DEVEM SER CRIADAS NO SEU BANCO DE DADOS //DE ACORDO COM OS SEUS ARRAYS A SEGUIR: //FUNCTION SIMILAR A FUNCTION DE ADICIONAR ITENS NO BANCO DE DADOS, O QUE MUDA É APENAS O => UPDATER E => ID DO ITEM DA DB:::: "select", "collum" => "2", "name" => "numero", "placeholder" => "Número", "required" => "yes", "select_info" => array("type" => "primary", "infos" => array('1' => "Select 1", '2' => "Select 2", '3' => "Select 3", '4' => "Select 4") ) ), //SELECT MONTADO VIA BANCO DE DADOS, BASTA FORNECER O BANCO DE DADOS E COLUNA:: array("type" => "select", "collum" => "2", "name" => "nome", "placeholder" => "Nome", "required" => "yes", "select_info" => array("type" => "database", "infos" => array('database' => "base_teste_select", 'collum' => "nome") ) ), //OUTROS INPUTS COM OUTROS TYPES:: array("type" => "text", "collum" => "1", "name" => "sobrenome", "placeholder" => "Sobrenome", "required" => "no"), array("type" => "textarea", "collum" => "1", "name" => "mensagem", "placeholder" => "Mensagem", "required" => "no"), array("type" => "img", "collum" => "1", "name" => "imagem", "placeholder" => "Imagem", "required" => "no") ); gerando_formulario($inputs_do_formulario, 'Atualizar Item', 'base_teste', 'updater', ''.$_GET['id'].''); ?> ///FUNCTION PAR CHAMAR SISTEM DE LOGIN + REDIRECT E SESSION::: //PARA USAR ESSA FUNCTION, A TABELA E AS COLUNAS DEVEM SER CRIADAS NO SEU BANCO DE DADOS ///FUNCTION PAR CHAMAR SISTEMA DE DESLOG SYSTEM FUNCTIONS ACTIVES:::: FUNCTION PARA GERAR FORMULÁRIO COM ENVIO DIRETO PARA O BANCO DE DADOS VIA AJAX + PHP. FUNCTION PARA GERAR QUALQUER LISTA DE ITENS DO BANCO DE DADOS COM PAGINACAO E DELET ITEM. FUNCTION PARA GERAR QUALQUER FORMULÁRIO DE ALGUM BANCO DE DADOS, USADO PARA EDITAR ITENS ENVIADOS PARA O BANCO DE DADOS.