hello~
php code:
for ($i=0;$i<$sql_row;$i++)
{
echo "question$i=".mssql_result($sql_query, $i, "questionName")."&";
echo "answer".$i."1=".mssql_result($sql_query, $i, "answer1")."&";
echo "answer".$i."2=".mssql_result($sql_query, $i, "answer2")."&";
echo "answer".$i."3=".mssql_result($sql_query, $i, "answer3")."&";
}
flash code:
for (a=0; a<=this.total; a++) {
_root.test2 = this.question1; //case 1
_root.test = this["question"+a]; //case 2
_root.test1 = eval("this.question" add a); //case 3
}
in case 1, _root.test2 displays value. the value is right.
and the value should be 1+1=?, but it dislays 1 1=?...dont know why.....how can it appears +?
in case 2 and 3, they have no any value.. just empty..
sth missing to code? thanks....
thanks for help
php code:
for ($i=0;$i<$sql_row;$i++)
{
echo "question$i=".mssql_result($sql_query, $i, "questionName")."&";
echo "answer".$i."1=".mssql_result($sql_query, $i, "answer1")."&";
echo "answer".$i."2=".mssql_result($sql_query, $i, "answer2")."&";
echo "answer".$i."3=".mssql_result($sql_query, $i, "answer3")."&";
}
flash code:
for (a=0; a<=this.total; a++) {
_root.test2 = this.question1; //case 1
_root.test = this["question"+a]; //case 2
_root.test1 = eval("this.question" add a); //case 3
}
in case 1, _root.test2 displays value. the value is right.
and the value should be 1+1=?, but it dislays 1 1=?...dont know why.....how can it appears +?
in case 2 and 3, they have no any value.. just empty..
sth missing to code? thanks....
thanks for help