在codeigniter中将多个文件添加到单个列

时间:2018-01-06 09:58:07

标签: codeigniter

如果我想在mysql数据库中的单个列中添加所有文件名怎么办

 <form role="form" id="feedbackForm" class="text-center" action="mail_send.php" method="post">
          <div class="form-group">
            <label for="name">Naam</label>
            <input type="text" class="form-control" id="name" name="name" placeholder="Name">
            <span class="help-block" style="display: none;">Voer uw naam in..</span></div>
          <div class="form-group">
            <label for="email">E-Mail</label>
            <input type="email" class="form-control" id="email" name="email" placeholder="Email Address">
            <span class="help-block" style="display: none;">Voer een geldig e-mailadres in.</span></div>
          <div class="form-group">
            <label for="message">Bericht</label>
            <textarea rows="10" cols="100" class="form-control" id="message" name="message" placeholder="Message"></textarea>
            <span class="help-block" style="display: none;">Voer een bericht in.</span></div>
          <button type="submit" id="feedbackSubmit" class="btn btn-primary btn-lg" style=" margin-top: 10px;"> Verstuur</button>
        </form>

这不起作用

1 个答案:

答案 0 :(得分:0)

您可以在存储到单个列时内爆变量。

$image_data = array($product_image, $product_image1, $product_image2);
implode('#',$image_data);

当你想要显示时只是爆炸它们。

explode('#',$image_data);