Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About AccuCORE

  • Rank
  1. Thank you for your help, I found a new way with javascript Jquery 1.5.2 and it works fine. <script type="text/javascript"> function updateTextArea() { var allVals = []; $('.tagstates :checked').each(function(i) { allVals.push((i!=0?"\r\n":"")+ $(this).val()); }); $('#statesel').val(allVals).attr('rows',allVals.length) ; } $(function() { $('.tagstates input').click(updateTextArea); updateTextArea(); }); </script> <textarea name="active" id="statesel"></textarea> <div class="
  2. That is a test code, I thought it worked but nothing. This is one give me the "Array" in stored in database, what can I do for this code? <?php require_once "../lakota/config.php"; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (isset($_POST['faction'], $_POST['stations'], $_POST["active"], $_POST['pending'], $_POST['influence'], $_POST['id_fact'])) { $sql = "INSERT INTO lakotabgs (faction, stations, active, pending, influence, id_fact) VALUES (?,?,?,?,?,?)"; if ($stmt = $link->prepare($sql)) { $stmt->bind_param("ssssss", $_POST
  3. Hello I need a great help for my problem, I tried to insert multiple checkboxs for "$_POST active" in my CRUD and the values must be saved in the database but will be saved as "Array" everytime. I used this code but where exactly I need to put it? foreach($_POST['active'] as $act){//query? } Here the PHP code <?php require_once "../lakota/config.php"; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (isset($_POST['faction'], $_POST['stations'], $_POST["active"], $_POST['pending'], $_POST['influence'], $_POST['id_fact'])) { if(isset($_POST["submit"])){ $activearr=$
  4. Hello guys, as you read the title I'm new to the PHP world and I hope to learn a lot. 😀
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.