Salomao Coelho Posted April 13, 2012 Report Share Posted April 13, 2012 (edited) 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>.<?phpsó que quando troco de um botão(letra) pra outro queria que limpasse a consulta e fizesse uma novo dbgrid Edited April 13, 2012 by Salomao Coelho Quote Link to comment Share on other sites More sharing options...
Question
Salomao Coelho
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 quando troco de um botão(letra) pra outro queria que limpasse a consulta e fizesse uma novo dbgrid
Edited by Salomao CoelhoLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.