The example from the PHP manual is using OOP. Is there a way to do it procedurally?
+1
A:
MySQLi has procedural-style function calls that can handle prepared statements. (Some of the procedural-style functions are deprecated, however.)
Amber
2010-05-19 22:00:36
awesome thanks you.
ggfan
2010-05-19 22:05:14
A:
Yes, you can. As far as I know PDO is completely object-oriented, but you may want to look into mysqli which allows both procedural and OO styles.
Procedural coders will find the basics almost identical. Where before you would used a function such as mysql_connect(), the new function is simply mysqli_connect(). Most of the old mysql_x functions have equivalent mysqli_x versions.
Lotus Notes
2010-05-19 22:02:45