PHP Classes

File: test_file.php

Recommend this page to a friend!
  Packages of José Augusto Ferreira Franco   PHP MySQL Error reporting   test_file.php   Download  
File: test_file.php
Role: Example script
Content type: text/plain
Description: A simple example , that tests the class
Class: PHP MySQL Error reporting
Process errors of MySQL database connections
Author: By
Last change:
Date: 21 years ago
Size: 347 bytes
 

 

Contents

Class file image Download
<?php
error_reporting(E_ALL);

require 'mysql_error_reporter.class.php';

$run =  new MYSQL_CONN;
$run->mysql_conn("localhost","root","","db_onidesk");
$erro = $run->the_msg;
if(sizeof($erro)<>0):
echo "<script>alert('$erro')</script>";

else :
if(empty($erro)){
echo "The class is running well :).Good for us !!!";
  }
endif;
?>