Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2.  
  3. include(dirname(__FILE__).'/config/config.inc.php');
  4. include(dirname(__FILE__).'/init.php');
  5. $default_lang = Configuration::get('PS_LANG_DEFAULT');
  6. /*
  7. UPDATE ps_product SET price=500 WHERE id_product=22;
  8. 22;UPDATE ps_product SET price=8000 WHERE id_product=22;
  9. */
  10.  
  11.  
  12. $sql = 'SELECT * FROM ps_product WHERE id_product =' . $_GET["suche"];
  13. echo $sql . "<br>";
  14. if ($results = Db::getInstance()->ExecuteS($sql))
  15.     foreach ($results as $row)
  16.         echo $row['id_product'].' :: '.$row['price'].'<br />';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement