All about PHP's Resources, Libraries, API's and Frameworks.
Here you will find a link for all posts that I have with a library to download:
Keep posted, time from time I will add a link from the newer libraries here.
Mc i found and issue with the mysql handler.
Into the insert method when compare if a value is or not numeric you use the is_numeric.
I have the bad lucky of have a field value (string) that was 0XAB. In database was varchar off course.
Like is_numeric evaluate too hexa numbers they give me a TRUE and not add the “‘”.
I solve with this modification:
if(is_numeric($value) && strtolower(substr($value,0,2)) != ‘0x’ )
Another thing i modify is clean the results var each time you do something insithe the class otherwise they grow up if you do many querryes on the same object.
Thanks for the library, we spoke some time ago about other fixes.
I like this lib is how i’ll do, fast, light and simple
I have totally forgotten that is_numeric does evaluate the hexadecimal values and for you it will, certainly, mess up the results. You have done a good solution and it will definitely work. I’m revising the class so I can improve it and I will check the query clean up and a possible substitute for the is_numeric function.
Thanks again for the reporting.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Amazon MP3 Store
iPad / Kindle / Nook Formatted
Error: Twitter did not respond. Please wait a few minutes and refresh this page.
Kindle Fire HD 8.9", Dolby Audio, Du...
Amazon Digital Ser...
Best Price $299.00 or Buy New $299.00
RSS - Posts
RSS - Comments
Enter your email address to follow this blog and receive notifications of new posts by email.
Join 293 other followers