2

I have simple php mysql data running page. with bootstrap.

How can i display an error when connection is lost?

How about popping up and modal as connection is lost & also trying to get connection & as connection gets back the modal disappears.

I have following modal:

<div id="myModal2" class="modal fade" role="dialog"> <div class="modal-dialog"> 
    <div class="modal-content"> 
        <div class="modal-header"> 
            <button type="button" class="close" data-dismiss="modal"> x </button> 
            <h4 class="modal-title">ERROR</h4> 
        </div> 
        <div class="modal-body"> 
            <p>You have lost connection
                </br> Trying again...
            </p> 
        </div> 
     </div> 
</div>
Gaurav Aggarwal
  • 9,809
  • 6
  • 36
  • 74
Mohammed Kumel
  • 141
  • 2
  • 11
  • 1
    If the connection is lost you can't communicate with the server so PHP is not going to be possible. – chris85 Mar 30 '16 at 20:19

0 Answers0