โดยตัว Connection ใหม่นี้ เป็นการทำงานแบบ OOP แต่ก็ยังกลิ่นอายเดิมคือการ return ค่าเป็นแบบ array ซึ่งสามารถนำไปประยุกต์ใช้งานได้หลากหลาย ขึ้นอยู่กับความชอบของแต่ละบุคคล นะครับ
โดยตัวอย่างนี้ผม ทำตัวอย่างให้ดู ทั้ง INSERT,UPDATE,DELETE, และการใช้งานแบบ ARRAY รับรอง แจ่มจริง ไรจริง
http://freecode.siamfocus.com/php_oop_db_connect/
FREE PHP OOP CONNECT MYSQL
Moderators: mindphp, ผู้ดูแลกระดาน
-
- PHP Newbie
- Posts: 6
- Joined: 26/01/2012 10:19 am
- Contact:
- Smoanaking
- PHP Newbie
- Posts: 2
- Joined: 16/03/2015 10:06 am
Re: FREE PHP OOP CONNECT MYSQL
เดี๋ยวจะไปลองหัดทำดูนะคะ ว่าจะดีไหม
-
- Similar Topics
- Replies
- Views
- Last post
-
-
เจอปัญหา Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [2002] บน FreeBSD
by mindphp » 23/07/2017 3:08 am » in Linux - Web Server - 1 Replies
- 1247 Views
-
Last post by mindphp
23/07/2017 3:20 am
-
-
- 10 Replies
- 4508 Views
-
Last post by sunzandesign
19/09/2012 9:17 pm
-
-
ช่วยหน่อยครับ OperationalError:Can't connect to MySQL server
by benzines » 29/11/2012 11:10 am » in Programming - C/C++ & java & Python - 6 Replies
- 5619 Views
-
Last post by benzines
30/11/2012 12:46 pm
-
-
-
ขอความช่วยเหลือครับ mysql_connect() [function.mysql-connect]
by bigmac » 30/08/2012 8:18 am » in Programming - PHP - 0 Replies
- 1357 Views
-
Last post by bigmac
30/08/2012 8:18 am
-
-
-
Database connection error (2): Could not connect to MySQL. Joomla 2.5
by mindphp » 01/02/2012 12:48 pm » in ปัญหาการใช้ phpBB3, SMF, Joomla, Wordpress, CMS, CRM - 4 Replies
- 4400 Views
-
Last post by mindphp
09/07/2012 3:11 pm
-
-
- 1 Replies
- 3815 Views
-
Last post by mindphp
27/06/2012 10:31 am
-
-
ช่วยด้วยค่ะ ขึ้น phpMyAdmin tried to connect to the MySQL server
by pompam » 21/02/2012 11:30 am » in Programming - PHP - 5 Replies
- 2817 Views
-
Last post by tohkai_php
10/04/2012 9:25 am
-
Who is online
Users browsing this forum: No registered users and 5 guests