Jump to content
Fórum Script Brasil
  • 0

Manipulação dbgrid


Salomao Coelho

Question

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 Coelho
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...