Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 29. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  How can I execute custom SQL query?

phpMyEdit Configuration     How can I execute custom SQL query?
Odoslať novú tému   Odpovedať na tému    
 
spektr     Založený: 16.10.2008   Príspevky: 10  
Príspevok Zaslal: 2008-11-01 22:41
Návrat hore  Odpovedať s citátom     

Does someone have an idea, how to execute custom query? I have a table, but know I would like to show not only the regular content of the table, but query too.

A simple query with group statement? Can this be done? I know, that there must be in class php file?

 
jkuliak     Založený: 30.04.2009   Príspevky: 1  
Príspevok Zaslal: 2009-04-30 19:52
Návrat hore  Odpovedať s citátom     

I'm also trying to find the answer to this question. Can someone who knows please tell us?

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2009-05-02 15:30
Návrat hore  Odpovedať s citátom     

Not sure if this works, but search in the class file, using your text editor, for the phrase "function myquery" and then at the end of that function, before "return $ret" add the line "echo $qry;".

 
chris209348     Založený: 22.04.2009   Príspevky: 3  
Príspevok Zaslal: 2009-05-12 19:48
Návrat hore  Odpovedať s citátom     

Query per row? You can use the SQL override or the PHP extension.

Query per full table view? Try custom PHP in a trigger function. You can reuse the connection made by the phpmyedit class & execute any query you want.

Basic trigger would go along these lines. You may need a return value to keep phpmyedit happy.

Kód:

<?php
$res=$this->myQuery("SELECT ....");
$row=mysql_fetch_array($res);
... do something with the result
?>


 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov