CodeCanyon

EazSQL - PHP MySQL Helper

  • Bought between 100 and 499 items
  • Brazil
  • Has been a member for 3-4 years

The class allows you to use order by, join and limit?
Thank you

Sourcegeek
In this Version of the class, you can do something like:
$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
  • Bought between 100 and 499 items
  • Brazil
  • Has been a member for 3-4 years

Excelent !
Thank you

  • Belgium
  • Exclusive Author
  • Has been a member for 1-2 years
  • Sold between 100 and 1 000 dollars

Looks nice. What design pattern(s) do you use? How does escaping work? Putting you in my watchlist :)

Sourcegeek

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 :-)

  • Bought between 1 and 9 items
  • Germany
  • Has been a member for 2-3 years
  • Referred between 10 and 49 users

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

Sourcegeek
Hello. First at all, sincerely I did not knew that ezSQL exists, and I think i’m not in position to compare my Helper with a Class outside of CodeCanyon, but as I saw the doc a little, i can tell some differences:

  • In ezSQL, debug only returns the last action, my helper can display the total ones
  • You can select another database when you want
  • In ezSQL, the delete, insert and update are made with the same query function, but my helper has a function for each one ($instance->delete(), $instance->insert(), $instance->update())
  • My helper saves all the class-internal fails into a public var ($instance->errors)
  • If you use multi-query with 2+ Selects, the function will return a nice ordered array with both results.
    Array(
    [0] = Object (first_results),
    [1] = Object (second_results)
    )
  • My helper has better explained documentation

    And a lot of more feautres. Hope you buy this item.

    Thank you
  • Bought between 100 and 499 items
  • Brazil
  • Has been a member for 3-4 years
equipexq Purchased

I liked … I will buy.

  • Bought between 100 and 499 items
  • Brazil
  • Has been a member for 3-4 years
equipexq Purchased

I suggest demo of each code in the documentation.

thank you

Sourcegeek

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 :)

  • Bought between 100 and 499 items
  • Brazil
  • Has been a member for 3-4 years
equipexq Purchased

Profit is always the best way to present an idea. I evaluated five stars.
Thank you

Sourcegeek

Thank you for buying and evaluating. I’m happy you liked it.

  • Exclusive Author
  • Referred between 10 and 49 users
  • Has been a member for 2-3 years
  • Author had a Free File of the Month
  • Bought between 1 and 9 items
  • Most Wanted Bounty Winner
  • Microlancer Beta Tester
  • Sold between 10 000 and 50 000 dollars

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?

Sourcegeek

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

amzee

You are welcome

  • Exclusive Author
  • Has been a member for 4-5 years
  • United States

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?

Sourcegeek

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

  • Has been a member for 1-2 years

I want to buy this item. but can this script connect to oracle database ? please advice me

Sourcegeek

No, as the own item name says, it only works with MySQL. Thank you.

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
  • United States

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.

Sourcegeek

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. :)

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
  • United States
  • Referred between 1 and 9 users
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
  • Exclusive Author
  • Taiwan

Hi, Sourcegeek.

Do your helper use mysqli (imporoved) ?

Sourcegeek

Hello. No, as the name says, it only uses MySQL. Thank you.

  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • United States

@Sourcegeek As Skiddie said, I too would like to see (I am looking for) MySQLi support before I make a purchase. :)

Sourcegeek

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.

  • Bought between 50 and 99 items
  • Has been a member for 2-3 years

Hi is there a way of getting the id of the last insert ? thabks

Sourcegeek

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.

  • Bought between 100 and 499 items
  • Has been a member for 3-4 years
Mick_ Purchased

Hello,

Wouldn’t one have to use mysql_free_result() after mysql_fetch_assoc() ?

Mick

Sourcegeek

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

Default-user
Mick_ Purchased

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

Sourcegeek

Sure. Please send me an email to the email address included in the Documentation and I’ll send you back the modified script.

Default-user
Mick_ Purchased

Did you receive my email?

Thanks!

Mick

Default-user
Mick_ Purchased

UP!

Default-user
Mick_ Purchased

Didn’t you receive my email? :(

Mick

Sourcegeek

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.

  • Bought between 100 and 499 items
  • Has been a member for 3-4 years
Mick_ Purchased

Hello,

Hi is there a way of getting the id of the last insert ?
That would be very useful and would supplement your class.

A solution perhaps with mysql_insert_id ?

Thanks!

Mick

Sourcegeek
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.


by
by
by
by
by