Jump to the post that solved this thread.
Solved: 9 Years, 11 Months, 1 Week ago mybb's database class
#11
Solved: 9 Years, 11 Months, 1 Week ago
use php's get_declared_classes() to get the list of classes used in the script, then use the other functions I gave you.
Lost interest, sold my sites, will browse here once in a while. It's been fun.
#12
Solved: 9 Years, 11 Months, 1 Week ago
Thank you that 2 ways are very useful can you tell me get_declared_classes() methods? or give a link for that methods?
What about count?
I use these 2 syntax but it doesn't work:
$variable=$variables->count()
$variable=$variables->count;
I want to have count of that objec's records.what is that syntax?
#13
Solved: 9 Years, 11 Months, 1 Week ago
check the left side of the links i provided earlier as they who all the similar functions and they include some examples. sorry to say that if you cannot figure that part out for yourself, i am not sure how well you can code class based php files.
Lost interest, sold my sites, will browse here once in a while. It's been fun.
#14
Solved: 9 Years, 11 Months, 1 Week ago
Quote:sorry to say that if you cannot figure that part out for yourself, i am not sure how well you can code class based php files.
Sorry i can't understand, can you explain?
I think i could find it myself and became very glad Big Grin .thank you or helping but i can't understand what you say in my last post.please say again.Toungue
#15
Solved: 9 Years, 11 Months, 1 Week ago
$db->loadObjectList(); is a function that's defined within a class...
#16
Solved: 9 Years, 11 Months, 1 Week ago
(2010-06-29, 06:37 PM)Sephiroth Wrote: $db->loadObjectList(); is a function that's defined within a class...
Thank you but i knew that and i say it in post10! i made a mistake in the first post and obviously i couldn't edit it,sorry.
#17
Solved: 9 Years, 11 Months, 1 Week ago
Mark as best answer Mark as best answer This user has been denied support. This user has been denied support.
I'm utterly flummoxed about what it is you're actually asking.

There are two count related things in the db class, one is

$db->num_rows($query) - the number (count) of rows that were returned (or affected) by query

$db->query_count - the number of queries executed by the class in total (for the admin statistics)

If neither of those were what you're looking for please rephrase your question, thanks.
#18
Solved: 9 Years, 11 Months, 1 Week ago
(2010-06-29, 09:59 PM)frostschutz Wrote: I'm utterly flummoxed about what it is you're actually asking.

There are two count related things in the db class, one is

$db->num_rows($query) - the number (count) of rows that were returned (or affected) by query

$db->query_count - the number of queries executed by the class in total (for the admin statistics)

If neither of those were what you're looking for please rephrase your question, thanks.
thank you.
QAPCT
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)