new pisilinux web sites

This commit is contained in:
Erkan IŞIK
2026-07-01 16:44:17 +03:00
commit b58488b586
21740 changed files with 2066209 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
class Sss_model extends Model{
function liste(){
return DB::get('sss')->result();
}
function new($post){
DB::insert('post:sss');
if (DB::affectedRows()) {
redirect('sss');
}else{
jalert(DB::error());
}
}
function update($post){
DB::where('id',$post['id'])->update('post:sss');
if (DB::affectedRows()) {
redirect('sss');
}else{
jalert(DB::error());
}
}
function edit($id){
return DB::where('id',$id)->get('sss')->row();
}
}