larciga
Posts: 4
|
| Posted: 03/29/2005, 9:11 PM |
|
hi all.. i need to put the next code in codecharge but i dont know where i can put ... if i put directly in html noting hapend
<?php
include_once "/home/guanajua/public_html/cnrm/poll2/booth.php";
echo $php_poll->poll_process("newest");
?>
where i can add ?
Thx
larciga
|
 |
 |
peterr
Posts: 5971
|
| Posted: 03/29/2005, 10:42 PM |
|
First, you don't need the 1st and the last lines. Then you could try this:
Add your 2nd & 3rd line somewhere at the beginning of your page (PageName.php) where you want to display the results:
include_once "/home/guanajua/public_html/cnrm/poll2/booth.php";
echo $php_poll->poll_process("newest");
I'm assuming that the above may not work as you intend, thus another solution could be:
1. Add your 2nd line somewhere at the beginning of Common.php, or at the beginning of your page where you want to display the results:
echo $php_poll->poll_process("newest");
2. Create a Label anywhere on your page, then in the Label's Before Show event add this code:
$LabelName->SetValue($php_poll->poll_process("newest"));
You can also refer to these examples of setting control values: http://docs.codecharge.com/studio/html/ProgrammingTechn...ntrolValue.html
Unfortunately it is not guaranteed that any of the above solutions will work without analyzing your booth.php code and understanding how it works. But you could sure try.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|