![]() |
Query results above header...
I have a php script with a query on it and if I call the page up with a "basic page" template the results are always at the top of the page, above the header etc and I want the results to show in the body of the page. Any Ideas?
|
Here is a link: My Test Page
Here is the php script: PHP Code:
HTML Code:
$stylevar[htmldoctype] |
you can never output anything via an echo or print command. replace echo with a variable, ($myvar = "<tr>"; for example) and then place that variable in your test template.
|
So can I assign a variable to this part of the scritp and then call that variable in a template?
PHP Code:
PHP Code:
|
You don't need to do that. Any variable in the script can be used in a template.
|
All times are GMT. The time now is 12:22 AM. |
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:
|