Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

XoopsMySQLDatabaseProxy vs XoopsMySQLDbSafe

Ankhaa
2009-01-17
2013-04-25
  • Ankhaa
    Ankhaa
    2009-01-17

    Hi all, please help.
    I have page wich shows detail information of hospitals in my xoopscube module, this page don't have any submitted values, as usual i get id from $_GET['id'] and select data from database and i have to write log into log table. When i try to insert log data to database it fails, because my $db object of my Mymod_LogHandler class is XoopsMySQLDatabaseProxy. 
    XoopsMySQLDatabaseProxy.query(..) function doesn't allow insert, update statements. :(
    From other pages wich have submitted values my $db object class is XoopsMySQLDatabaseSafe and works good with insert statements, i guess because page has submitted values.

    How can i write log in this situation?

    Thanks for attention.

     
    • Ankhaa
      Ankhaa
      2009-01-19

      Problem solved using queryF method.