Well say we have the variable from your query above:
$savethreadid
You place [/b]$savethreadid[/b] in the template where you want that value to appear.
---
You just do this if your template doesn't contain other templates (like forumdisplay contains forumdisplaybit):
eval("echo dovars(\"".gettemplate("Your_Template_Name_Here"). "\");");
Example:
<?
// Your PHP code goes here, your queries
// $query = (...);
// $savethreadid = (...);
// $othervars = (...);
//
//eval("echo dovars(\"".gettemplate("Your_Template_Name_Here"). "\");");
If you place "$query" and "$savethreadid" and "$othervars" in your template than they will appear as you expect. What are you doing now? Did you place the call to the template before your queries and assignments?
[Edited by rangersfan on 09-28-2000 at 12:03 PM]
|