PHP form submission, names has multiple values, saved to the database is a string, taken from the database, in the loop to the page,

< p class= "gh_p6" >

                    <input type="hidden" id="username" value="{$vo.username}" name="names[]" />{$vo.username}

                

<div class="gh_div5"> <p class="gh_p7"> <span>:</span><span>{$vo.number}KG</span>

<div class="gh_div6"> <p class="gh_p8"> <img src="/static/index/img/img07.png"/>

<p class="gh_p9"> <input type="text" id="" value="0" name="number[]" />

<p class="gh_p10"> <img src="/static/index/img/img08.png"/>

array (size=2) appears when I submit
"names" = >

array (size=2)
  0 => string "" (length=6)
  1 => string "" (length=6)

"number" = >

array (size=2)
  0 => string "2" (length=1)
  1 => string "3" (length=1)

I use implode (); $date ["names"] = implode ("*", $date [" names"]);

    $date["number"]=implode("*",$date["number"]);      
          3*4        *    ;


I"m going to write "3jue 4", "eggplant, millet" on the page;

query result
array (size=1)
"names" = >

array (size=2)
  0 => string "" (length=6)
  1 => string "" (length=6)
  names;
  
  
  
  

the result I want is this:

 "names" => string "" (length=6)
 "names" => string "" (length=6)

Php
Apr.03,2021

1. Modify the typesetting of questions
2. You can take a look at the method of submission through the page. If it is the way of $name [], it must be in the form of an array when you get it at the backend. If you want one by one, set n multiple name

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaa12c-1fad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaa12c-1fad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?