dooballoh
05-05-2006, 12:32 AM
Hello.
I am using phpBB and wanted to display latest poll in phpBB to my home page.
My home page is html extention and want to use java to call it and display it.
I am stuck with these codes;
php codes;
<? php
SOME, SOME....
{
echo "document.write('$poll['options'][$i]['vote_option_text']');";
} ?>
My question is that, if ['options'] then will not print anything, if I remove ' ' then print something. However if I put all 4 items ('$poll['options'][$i]['vote_option_text']');"; without ' ' inside of [ ] it will print like;
Array[0][vote_option_text]Array[1][vote_option_text]Array[2][vote_option_text]Array[3][vote_option_text]Array[4][vote_option_text]Array[5][vote_option_text]
What is correct syntax?
Please help!!!
Thank you in advance
I am using phpBB and wanted to display latest poll in phpBB to my home page.
My home page is html extention and want to use java to call it and display it.
I am stuck with these codes;
php codes;
<? php
SOME, SOME....
{
echo "document.write('$poll['options'][$i]['vote_option_text']');";
} ?>
My question is that, if ['options'] then will not print anything, if I remove ' ' then print something. However if I put all 4 items ('$poll['options'][$i]['vote_option_text']');"; without ' ' inside of [ ] it will print like;
Array[0][vote_option_text]Array[1][vote_option_text]Array[2][vote_option_text]Array[3][vote_option_text]Array[4][vote_option_text]Array[5][vote_option_text]
What is correct syntax?
Please help!!!
Thank you in advance