Zen Follower
- Join Date:
- Aug 2011
- Posts:
- 122
- Plugin Contributions:
- 0
Amount of rows with $db->Execute?
Using $db->Execute to do a database query, how do I get the amount of rows?
Views: 1,141
Zen Follower
Using $db->Execute to do a database query, how do I get the amount of rows?
Administrator
$foo_query = $db->Execute("SELECT bla bla bla");
$records = $foo_query->RecordCount();
Sensei
joecooper:
Using $db->Execute to do a database query, how do I get the amount of rows?
You already asked the same question in another thread. http://www.zen-cart.com/forum/showthread.php?t=192530
Please don't post the same question in multiple places ... it's akin to spam.
Zen Follower
Due to the inability to edit posts (which is very uncommon of forums), I decided to post again, as I had put the wrong information on the post.
Zen Follower
Thanks :)
Zen Follower
Ignore, thanks again
Black Belt
Posts can be edited for seven minutes (I would like it a bit longer:). After that, responses will refer to the original content and if the post is edited significantly after responses, the thread may become confusing or meaningless. New info should be given later in the thread. If you have a real need for something to be edited, you can ask for a moderator to do it.
Sensei
As gjh42 said, if you edit the original text then it changes the context of any replies, and is thus renders them meaningless.
Simplest and best way to add more information is to post a reply containing that additional information.
Tell staff why this post should be reviewed.