File: demo/insert.php

Recommend this page to a friend!
  Classes of Arash Soleimani  >  LMSQL  >  demo/insert.php  >  Download  
File: demo/insert.php
Role: Example script
Content type: text/plain
Description: insert example
Class: LMSQL
Connect and perform MySQL database queries
Author: By
Last change:
Date: 3 months ago
Size: 222 bytes
 

Contents

Download
<?php
require_once 'mysql.class.php';

$mysql = new LMSQL('localhost', 'USERNAME', 'PASSWORD', 'DB-NAME', true);

$mysql->insert([
   
'table'=>'tableName',
   
'values'=>['title'=>'Something', 'body'=>'Test Test']
]);

?>


For more information send a message to info at phpclasses dot org.