Skip to content

sunboy-dev/crud_php_oop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Repo3] - Basic PHP CRUD (OOP)

enter image description here

ตัวอย่าง CRUD ด้วยภาษา PHP (OOP : Object Oriented Programming )

Repo นี้มีอะไรบ้าง?

ในส่วนของ PHP มีการเชื่อต่อฐานข้อมูล การสร้างclass function มาใช้งาน. ในส่วนของ UI ใช้ Bootstrap v5 มาใช้ในรูปแบบของฟอร์มกรอกข้อมูล ตารางแสดงข้อมูล ปุ่มต่างๆ

CRUD มีอะไรบ้าง?

  • Create
  • Read
  • Update
  • Delete

ตัวอย่าง class function ใน PHP

	public function fetchOne($id){
		$query = mysqli_query($this->dbcon, "SELECT * FROM tbl_user WHERE m_id = '$id' ");
		return $query;
	}

About

ตัวอย่าง CRUD ด้วยภาษา PHP (OOP : Object Oriented Programming )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published