| table_exists() | ใช้ตรวจสอบว่ามี table ที่กำหนด อยู่ใน database จริงหรือไม่ |
|---|
method:table_exists ( table_name );
return type:boolean
content:ใช้ตรวจสอบว่ามี table ที่กำหนด อยู่ใน database จริงหรือไม่
example:$conn = new Database (); if ( ! $conn->table_exists ( "bamboolabcode" ) ) { echo "Not have table bamboolabcode."; }