Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Stopping Page Execution

Mon Oct 27, 2008 12:50 pm

Code:
<?php
     $db_conn
= mysql_connect ("imaginaryhost", "java2s", "password");
   
     
// If no db connection, exit script
     
if(!$db_conn)
     {
          print(
"<b>I could not connect to the database! :(</b><br />");
          print(
"This script will now exit<br />");
          exit;
     }
   
     
mysql_close($db_conn);
?




Post a reply
  Related Posts  to : Stopping Page Execution
 query about execution     -  
 max execution time     -  
 Image Scroller-scrollbar-LINE_UP,LINE_DOWN-PAGE-UP-PAGE-DOWN     -  
 How to add CSS to a web page     -  
 Registration page in jsp     -  
 add image row in your web page     -  
 jsp page counter     -  
 Page Call MySelf PHP     -  
 redirect to another page     -  
 File page counter in php     -  

Topic Tags

PHP Basics