Maintain selected paragraphs of the multiple choice list in OBD



  • ♪ /questions/tagged/html There's a list of multiple choices. We need to make sure the selected list points are sent to one field of OBD through the comma.

    if ($_POST){
        $abon_login = $_POST['login'];
        $telephone = $_POST['telephone'];
        $sending = $_POST['sending']; 
        $pay = $_POST['pay']; 
        $orders = $_POST['orders'];
        $news = $_POST['news'];
        $other = $_POST['other'];
    
    $table = $system_site_prefix . 'erps_services_sms'; 
    database_insert("INSERT INTO `$table` VALUES ('$index', '$abon_login', '$telephone', 
        '".implode(",", $sending)."', '$pay', '$orders', '$news', '$other')");
    

    The selected list items should be recorded in the variable /questions/tagged/sending and then to base. I tried with a function. /questions/tagged/implode - It didn't work. Please tell me how best to do this.



  • Theoretically, everything has to work normally. Maybe some of the elements of the $sending array are wrong.

    It would be good to temporarily replace your database_insert by

    if(!$ins=mysql_query("INSERT INTO....")){
        echo mysql_error() . " " . __LINE__ . "<br>";
    }
    

    And see what mysql's gonna do. Maybe there'll be a problem.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2