Advertisement
DanielJ89

Untitled

Apr 3rd, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. {source}<?php
  2. $db = JFactory::getDbo();
  3. $query = $db->getQuery(true);
  4.  
  5. //Get post data
  6. $jinput = JFactory::getApplication()->input;
  7. $kampid = $jinput->get('$kampid');
  8. $resultat = $jinput->get('$resultat', 'string');
  9.  
  10.  
  11. $fields = array(
  12. $db->quoteName('resu') . ' = ' . $db->quote($resultat)
  13. );
  14.  
  15. $conditions = array(
  16. $db->quoteName('id') . '=' . $kampid
  17. );
  18.  
  19. $query->update($db->quoteName('vm_207'))->set($fields)->where($conditions);
  20.  
  21. $db->setQuery($query);
  22.  
  23. $result = $db->execute();
  24. ?>{/source}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement