Modifying the database from the front end - Joomla! Forum - community, help and support


are able use jtable modify database front end? keep getting following
error:

fatal error: call member function bind() on non-object in /home/jmarket/public_html/components/com_jdm/jdm.php on line 106


code: select all

function savemydomain($option)
   {
      global $mainframe;
      $row =& jtable::getinstance( 'domains' , 'table' );
      
      if(!$row->bind(jrequest::get('post')))
      {
         echo "<script> alert('".$row->geterror()."');
              window.history.go(-1); </script>\n";
         exit();
      }
      
      if (!$row->store())
      {
         echo "<script> alert('".$row->geterror()."');
              window.history.go(-1); </script>\n";
         exit();
      }
   front_html_jdm::showmydomains();
   }   

figured out, including administrator side jtable... =p





Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO