I was kind of worried at first thinking about transitioning, but when I looked into what Mysqli was actually about I realized the actual changes to the query code would be relatively small:
http://www.php.net/manual/en/mysqli....-interface.php
virtual pets forum - Virtual pets news - Gaming discussion - General chat - Art marketplace
I was kind of worried at first thinking about transitioning, but when I looked into what Mysqli was actually about I realized the actual changes to the query code would be relatively small:
http://www.php.net/manual/en/mysqli....-interface.php
My virtual pet site!
http://www.mystikpets.com/


I might as well go through it now... not that hard or time consuming with find+replace xd. Just got to remember to do it this way with future stuff



This is where abstracting away the actual database object helps a fair bit. If you had abstracted it, then this change would be in 1 file instead of trickled through multiple.
~judda
Personal Site, Blog, Development Projects all wrapped up into one convenient location. Click here to begin. I am very straight to the point ... if you don't like it ...just feel free to ignore me.
Blog :: Development Blog :: Resume
Virtual Pet News - Aggregator of all pet site News Feeds
SQL Blog Feed - Aggregator of several SQL blog sites
PHP Blog Feed - Aggregator of several PHP blog sites
Looks like they are only deprecating mysql_list_dbs() at this point in 5.4.x
http://docs.php.net/manual/en/migrat...deprecated.php
Working on a few sites lately I've ran into multiple $_GET and $_POST that are in free air and not escaped in any way, shape or form. I think it would have been nice if the mysql() functions would have thrown an automatic fatal error if they're not escaped. I think PDO will be nice, but it's sure hard when you have a site that's fully coded using all mysql and there is no function library or master includes in place.

Thankfully, SQL stays pretty much the same. It's just the names of the functions you really have to worry about.



You do realize that that is not physically possible for these functions to do this. How do they know that you are not trying to "DELETE FROM users WHERE userid = '1' OR 1=1--"? How is the function to know that? Yes, you can because you are able to look at the context of the code and make an informed decision however, the database is just doing exactly what it is being told.
TBH, people should never include the user's input directly into a query. They should be using query parameters. This avoid the need to escape the strings all together.
~judda
Personal Site, Blog, Development Projects all wrapped up into one convenient location. Click here to begin. I am very straight to the point ... if you don't like it ...just feel free to ignore me.
Blog :: Development Blog :: Resume
Virtual Pet News - Aggregator of all pet site News Feeds
SQL Blog Feed - Aggregator of several SQL blog sites
PHP Blog Feed - Aggregator of several PHP blog sites



Personal Site, Blog, Development Projects all wrapped up into one convenient location. Click here to begin. I am very straight to the point ... if you don't like it ...just feel free to ignore me.
Blog :: Development Blog :: Resume
Virtual Pet News - Aggregator of all pet site News Feeds
SQL Blog Feed - Aggregator of several SQL blog sites
PHP Blog Feed - Aggregator of several PHP blog sites
Zend's framework info: http://www.ibm.com/developerworks/op.../os-php-zend1/
Also, a good article on mysql_real_escape_string vs. addslashes: http://shiflett.org/blog/2006/jan/ad...-escape-string
Bookmarks