SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
-
Feb 19, 2009, 13:34 #1
- Join Date
- Dec 2002
- Location
- Canada
- Posts
- 2,476
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
MySQL "lazy load connect" and escaping?
So I have implemented lazy-load connecting to the database - only connecting when a query is actually being done.
Sometimes we end up only using a cache so its a waste to actually open the connection to the DB server...
The problem I have run into is with escaping arguments - mysql_real_escape_string can no longer be used but mysql_escape_string is deprecated.
Does anyone have any suggestions to approach this issue and how I might be able to solve it?
Look forward to all ideas and suggestions!AskItOnline.com - Need answers? Ask it online.
Create powerful online surveys with ease in minutes!
Sign up for your FREE account today!
Follow us on Twitter
Bookmarks