![]() |
Display MySQL Query result
This is my query
Code:
$boatbrands=$DB_site->query('select count(*) The result is supposed to be 10 rows of 2 columns worth of data, but I can't figure out what I'm doing wrong here. |
PHP Code:
|
I've been using some examples in other php files and the PHP man to learn the output piece, but even though I think I've got that right, I'm still getting the Resource ID #38 error in the output. Where can I find what the error is really trying to tell me?
Here's what I'm using for the output Code:
while($boatbrand=$DB_site->fetch_array($boatbrands)) { |
Forgot to say "thanks for the reply" in my other message. Here''s the whole piece which may help.
Code:
// ############ How many of each brand of boats |
use $boatbits in your boatstats_stats template
then change the code to: [code]while($boatbrand=$DB_site->fetch_array($boatbrands)) { eval("\$boatbits .= \"".gettemplate("boatbit")."\";"); }[/php] then create a new template called boatbit and there use the variable $boatbrand |
Thanks again Xenon. The result is simply the word ARRAY. :(
I'll keep tweaking. |
GOT IT!!!
Xenon, many many thanks my friend. I was finally able to get it to display. I was, of course, doing a lot of things wrong and I sincerely appreciate your help. Here was went into the boatbit template: Code:
<tr align='center'> |
:)
you're welcome |
All times are GMT. The time now is 04:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|