Quote:
Originally Posted by getmea
I'm not sure if my webhost is PHP 5.0 able yet...
|
Than you should aske your hoster to upgrade the sooner than later. Using the Database object has the following advenatges:
- Encapsulates database connection that makes it more secure. Character escaping is taken care of in the API, so SQL injection attacks is not that threat any longer.
- You can
try { the connection }
and
catch (the error) { }
and continue.
- There are drivers for the most important commercial and free database platforms.
- Seamless integrate database connection(s) and SQL statements into your code.