Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: david Panter
Added: Aug 2, 2018 11:37 AM
Views: 2
Tags: no tags
multiselect mysql pdate
  1. <?php
  2. //print_r($_REQUEST);
  3. include "_app_init.php";
  4.  
  5.  
  6.  
  7.  
  8.   if(@$_REQUEST['saveStockRefs']) {
  9.     $addAssets = coalesce(@$_REQUEST['stockRefs'],array());
  10.  
  11.     showme($addAssets);
  12.     mysql_update('accounts',@$CURRENT_USER['num'],null, array('dashboard_stock_refs' => "\t" . implode("\t", $addAssets) . "\t"));
  13.  
  14.  
  15.    
  16.  
  17.     die();
  18.   }
  19.  
  20.  
  21.  
  22.  
  23. ?>
  24.