PHP Classes

File: tests/update.php

Recommend this page to a friend!
  Classes of Ali YILMAZ   Mind Framework   tests/update.php   Download  
File: tests/update.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: 506 bytes
 

Contents

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

$Mind = new Mind();

echo
'<br>';
$values = array(
   
'username'=>'Ali Y?lmaz1?',
   
'password'=>md5('123456')
);

if(
$Mind->update('users', $values, 3)){
    echo
'Kay?t güncellendi.';
} else {
    echo
'Kay?t güncellenemedi.';
}


echo
'<br>';
$values = array(
   
'username'=>'Ali Y?lmaz11',
   
'password'=>md5('123456')
);

if(
$Mind->update('users', $values, 3, 'id')){
    echo
'Kay?t güncellendi.';
} else {
    echo
'Kay?t güncellenemedi.';
}