XoopsMySQLDatabaseProxy vs XoopsMySQLDbSafe

  • 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.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks