Login   Register  
PHP Classes
elePHPant
Icontem

File: Examples/Insert_Example

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  >  Examples/Insert_Example  >  Download  
File: Examples/Insert_Example
Role: Example script
Content type: text/plain
Description: Example Insert Queries
Class: LINQ In PHP
Query arrays with a SQL-like syntax using LINQ
Author: By
Last change: include path changed
Date: 2010-01-23 10:30
Size: 789 bytes
 

Contents

Class file image Download
<?php
    
/**
    *  Insert Example For D3Linq
    * 
    */
  
include '../D3Linq.php';
                                                 
  
$myArray=array(
            array(
'name'=>'Tufan',      'surname'=>'YILDIRIM'), 
            array(
'name'=>'Baris',      'surname'=>'YILDIRIM'), 
            array(
'name'=>'Gokmen',     'surname'=>'Koc'), 
            array(
'name'=>'Deniz',      'surname'=>'Yilmaz'), 
            array(
'name'=>'Tufan Bar&#305;&#351;','surname'=>'YILDIRIM')       
  );
  
                   
  
  
$db=new D3Linq();
  
   
$db->Query("INSERT INTO myArray (name,surname) VALUES ('Inserted Name','Inserted Value')");
   
    
    
$db->Query('SELECT *FROM myArray');
     while (
$kk=$db->fetch_assoc()){
         
print_r($kk);
     }
     
?>