PHP Classes

File: tests/columnCreate.php

Recommend this page to a friend!
  Classes of Ali YILMAZ   Mind Framework   tests/columnCreate.php   Download  
File: tests/columnCreate.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mind Framework
Framework that implements several design patterns
Author: By
Last change:
Date: 1 year ago
Size: 482 bytes
 

Contents

Class file image Download
<?php
require_once ('../src/Mind.php');

$Mind = new Mind();

echo
'<br>';

$scheme = array(
   
'username'
);
if(
$Mind->columnCreate('yenitablo', $scheme)){
    echo
'Sütun olu?turuldu.';
} else {
    echo
'Sütun olu?turulamad?.';
}

echo
'<br>';

$scheme = array(
// 'id:increments:14',
   
'created_at',
   
'updated_at',
   
'_token'
);
if(
$Mind->columnCreate('yenitablo', $scheme)){
    echo
'Sütunlar olu?turuldu.';
} else {
    echo
'Sütunlar olu?turulamad?.';
}