| Index
» Projekty
» phpMyEdit
» Fórum
» Using phpMyEdit's database functions |
 |
Ivo
Založený: 03.06.2004
Príspevky: 10
Zaslal: 2004-08-09 14:33
Návrat hore
Odpovedať s citátom
|
Hi,
This is a problem I have considered for a while. I would have liked to use the MySQL funtions in the phpMyEdit class, but for this I need to instantiate it. This will call the contructor and show me a table. Is there any way to effectively avoid this in a clean way, so that my custom buttom (CVS) script doesn't have to use a redundant self-made database class? Like an option to phpMyEdit to have it do "nothing" action-wise?
Thanks!
|
Ivo
Založený: 03.06.2004
Príspevky: 10
Zaslal: 2004-08-09 14:42
Návrat hore
Odpovedať s citátom
|
Nevermind; I spoke too soon. I seems that setting $opts['execute'] to FALSE before instantiation works wonderfully. Any comments as to this method's validity are welcome.
Sorry for not paying attention. :)
|
Ivo
Založený: 03.06.2004
Príspevky: 10
Zaslal: 2004-08-09 14:49
Návrat hore
Odpovedať s citátom
|
One more reply from me. I've noticed that phpMyEdit uses the mysql_db_query() function in myquery(). This function is slow and deprecated. MySQL documentation strongly advises to use mysql_select_db() and mysql_query() instead.
I may rewrite this part for my purposes.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|