i need query in example editor
i need query in example editor
rrzavaleta
Posts: 78Questions: 52Answers: 2
in Editor
datatableseditor in the examples , only the fields of database is added and these are executed in automatic ie a query for all records do.
What I do is a query for example select * from people where id = " 1". but I also want to use the editor buttons themselves .
This discussion has been closed.
Answers
I'm afraid I don't really understand what you are asking. Do you want to use
select *
, or is it about thewhere
condition?For
where
use thewhere()
method.For
select *
that isn't possible. You need to specify the fields explicitly so Editor knows what to work with.Allan
ok, for example
SELECT id, name FROM datos WHERE id="5" AND NAME = "allan";
as is written using WHERE syntax in the editor?
In the PHP libraries you would use:
For more control in 1.4 you can give it a closure:
Allan