Login   Register  
PHP Classes
elePHPant
Icontem

File: debug_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tufan Baris YILDIRIM  >  LINQ In PHP  >  debug_example.php  >  Download  
File: debug_example.php
Role: Example script
Content type: text/plain
Description: Activating Self Debugger on error
Class: LINQ In PHP
Query arrays with a SQL-like syntax using LINQ
Author: By
Last change: alternate added
Date: 4 years ago
Size: 836 bytes
 

Contents

Class file image Download
<?php                                                                                                                   
   
/**
   * @name D3Linq
   * @version v1.5.1
   * @author Tufan Baris YILDIRIM 
   * @link http://www.tufyta.com
   * D3Linq Debugger Example
   */
   
    
    
include 'D3Linq.php';
    
$linq=new D3Linq();
    
    function 
debug_linq(){
        global 
$linq;
        
$linq->debug();
    }
    
    
$linq->OnError='debug_linq';
    
    
    
/** 
    * Alternate   for debug
    * @var mixed
    */
    
$linq->OnError='selfdebug';    
    
    
$deneme=array('ic'=>array('deneme','deneme2'),1,2,3,4,5,67,8);
    
    
$linq->Query("SELcECT DISTINCT key,value FROM deneme.ic");
  
    echo 
'<pre>';
    while (
$Post=$linq->fetch_assoc())  {
                
print_r($Post);
    }
?>