PHP Classes

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: 4 years ago
Size: 222 bytes
 

Contents

Class file image 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']
]);

?>