Sourcegeek
- Exclusive Author
- Has been a member for 1-2 years
- Mexico
- Sold between 1 000 and 5 000 dollars
71
Purchases
Buyer Rating:
4.75 stars
4.75 average based on 12 ratings.
-
5 Star
1083%
-
4 Star
18%
-
3 Star
18%
-
2 Star
00%
-
1 Star
00%
| Created | 6 October 11 |
| Last Update | 2 December 12 |
| Software Version | MySQL 5.x, jQuery |
| High Resolution | No |
| Files Included | JavaScript JS, HTML, CSS, PHP |
© All Rights Reserved Sourcegeek -
Contact Envato Support


The class allows you to use order by, join and limit?
Thank you
$res = $instance->get_rows("SELECT * FROM yourtable ORDER BY id ASC"); // or $res = $instance->get_rows("SELECT * FROM yourtable AS tabl JOIN example AS ex ON ex.cc = tabl.cc2 WHERE ..."); // Now, show all foreach($res as $r) { echo $r->example; }Or if you want limit, you can use:
$res = $instance->get_rows("SELECT * FROM yourtable LIMIT 2");If you want just a limited query and not fetch_assoc:$res = $instance->pagin_query("SELECT * FROM youtable", 0, 2);If you have some ideas for a different implementation, just tell me. Thank you
Excelent !
Thank you
Looks nice. What design pattern(s) do you use? How does escaping work? Putting you in my watchlist
Hello. I think you are a little confused of what this helper does. For this time, it doesn’t has any design pattern, this is only designed for making code in a easy way. You can see the Screenshot where is the list of what you can do with this. Probably, in a future, I will do an update with MVC controller.

Escaping works in the classic way, adding slash (\) before any ’ or ” character, preventing Mysql Injection.
Thank you for being interested and thank you for your comment
Hi,
could you please explain us the difference to the free ezSQL database class?
ezSQL: http://justinvincent.com/ezsql
I saw that your helper supports multi query but is that the only difference?
Thx
Array(
[0] = Object (first_results),
[1] = Object (second_results)
)
And a lot of more feautres. Hope you buy this item.
Thank you
I liked … I will buy.
I suggest demo of each code in the documentation.
thank you
Thank you for buying the item and thank you for your suggestion. All right, I will add demo of each code. I have in mind some updates, so I will do some corrections and include that. If you have any other suggestions, bugs, or you want something to be added, would be very nice.

Thank you again
Btw, if you liked the helper, please rate
Profit is always the best way to present an idea. I evaluated five stars.
Thank you
Thank you for buying and evaluating. I’m happy you liked it.
Hi. Seems like a good bundle. I would like to know how this can be tackled using your bundle:
I passed in multiple queries say: 3 Inserts 1 Update
These 4 queries are highly dependent.
Now, assume that 2nd Insert resulted in error. I want first query to be rolled back. Transaction support present?
Hello. Actually this item doesn’t supports that option, but I will consider to do an update including it, is a good idea.
Thank you for the suggestion
You are welcome
How is this different from those free mysql classes? What I need is a lightweight class with a fast execution time. Can this do the job?
You can read the difference in the reply of the comment created by @NetReview
This is not exactly a class, this is a Helper. Allows to do queries with a easy syntax (as PHP ) and other things, like doing multi-queries. You can buy test it, but is not created to optimize queries (fast execution), just the syntax.
By the way, the most common classes doesn’t has ability to run queries in fast execution time. Why? Every one needs to assign private vars, call methods, and all this consumps so many time. In time, nothing is better than doing native queries
Good luck, thank you
I want to buy this item. but can this script connect to oracle database ? please advice me
No, as the own item name says, it only works with MySQL. Thank you.
how much would this help me how to hook into a database for use in WordPress, im new to SQL and decided to search for something to “help” me on codecanyon. if you can confidently tell me it will cut my learning curve, i will buy.
Well. This is a class helping the user to write MySQL processes requiring long lines of code at least lines. Before buying this item, you may want to learn MySQL basics first. Thank you for being interested.
Hi, Sourcegeek.
Do your helper use mysqli (imporoved) ?
Hello. No, as the name says, it only uses MySQL. Thank you.
@Sourcegeek As Skiddie said, I too would like to see (I am looking for) MySQLi support before I make a purchase.
Sure, just let me a few more days to make the implementation. I am a little busy at this moment.
However, if you need the change at this moment, just buy the class, tell me via message and I’ll send you the modification.
Thank you.
Hi is there a way of getting the id of the last insert ? thabks
Hello.
Sorry but that is impossible.
Anyway, if you want me to write a function for you to get the last ID, just contact me to the email provided in the Documentation.
Thank you.
Hello,
Wouldn’t one have to use mysql_free_result() after mysql_fetch_assoc() ?
Mick
Mysql_free_result() is used to clean the memory where the queries returns big number of results, and the memory is cleaned automatically at the end of the script so…. I don’t see why do you want to use it.
If you are more descriptive, that will be appreciated.
Thank you
In fact, I work on a shared hosting package. Also, it is important to be attentive with the resources used.
Do you think that it is possible to add the function after each use of mysql_fetch_assoc() in your script?
Thanks again!
Mick
Sure. Please send me an email to the email address included in the Documentation and I’ll send you back the modified script.
Did you receive my email?
Thanks!
Mick
UP!
Didn’t you receive my email?
Mick
Hello. You don’t need to spam my email or the script page. If I don’t send a response, is because I didn’t read the email because I am busy. Just wait until I get available.
Thank you.
Hello,
That would be very useful and would supplement your class.A solution perhaps with mysql_insert_id ?
Thanks!
Mick