sql >> Database >  >> RDS >> Mysql

Modal laadt niet met javascript in php (CodeIgniter)

Probeer onderstaande code; dit zal werken

public function insert($data) {
    // Inserting into your table
    // Calling model
    $done = $this->db->insert('sign_up', $data);

    // You can do something else here
    if($done) {
?>
        <script>$(document).ready(function(){$('#thankyouModal').modal('show')});</script>
        <div class="modal fade" id="thankyouModal" tabindex="-1" role="dialog">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">Thank you for pre-registering!</h4>
                </div>
                <div class="modal-body">
                    <p>Thanks for getting in touch!</p>                     
                </div>    
            </div>
        </div>
    </div>
<?php
    }
}


  1. hoe PostgreSQL jsonb op te slaan met SpringBoot + JPA?

  2. Hoe SDO_GEOMTRY in GeoJSON te converteren

  3. Sneller om veel resultaten willekeurig te verdelen op MySQL Server of in PHP

  4. Unieke codes genereren in PHP/MySQL?