Limpar consulta dbgrid

12/04/2012

0

PHP

estou fazendo uma Agenda faço uma consulta e coloco no dbgrid,
function Page1Create($sender, $params)
{
$cod_id= $_SESSION[id];
$db = new D3Sql;
$db->baglan(192.168.1.128,root,scl2615a50); // Connecting Mysql Server
$db->dbsec(Agenda); // Select Database
$db->sql(select nome, telefone from agenda where nome like A% and user_id=$cod_id order by nome ASC ); // Execute Query return Datasource
?>
<br>
<DIV>.
<?php
$db->style=array(
row1=>example_row1_style,
row2=>example_row2_style,
thead=>example_thead_style
);
echo $db->grid(); // Print Grid With Style
?>
</div></br>.<?php
}
function btAClick($sender, $params)
{
?>
document.getElementById(agenda.php).reset();
<?php
$cod_id= $_SESSION[id];
$db = new D3Sql;
$db->baglan(192.168.1.128,root,scl2615a50); // Connecting Mysql Server
$db->dbsec(Agenda); // Select Database
$db->sql(select nome, telefone from agenda where nome like A% and user_id=$cod_id order by nome ASC ); // Execute Query return Datasource
?>
<br>
<DIV>.
<?php
$db->style=array(
row1=>example_row1_style,
row2=>example_row2_style,
thead=>example_thead_style
);
echo $db->grid(); // Print Grid With Style
?>
</div></br>.<?php
só que ando mudo de uma letra pra outra queria que limpasse a consulta e fizesse uma novo dbgrid
Salomao.coelho

Salomao.coelho

Responder

Assista grátis a nossa aula inaugural

Assitir aula

Saiba por que programar é uma questão de
sobrevivência e como aprender sem riscos

Assistir agora

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar