I have an array of values that come from a database.
I used a FOR loop to retrieve each of the values and pass it on to text fields. But the instead of displaying the whole word, only the first letter of the values get displayed and it doesn't even pass the values.
[PHP]
<?
$desc_array = count($part_des c);
for($x=0; $x<=$desc_array ; $x++)
{
?>
self.opener.doc ument.form1.par ticles[<?=$x?>].value=<?echo "$part_desc[x]";?>;
<?}?>
[/PHP]
could you in any way improve my code so that it would work? I really need a solution for this. I need to present my program tomorrow afternoon. This is the only problem that some how I couldn't fix. I was actually able to make it work by chance yesterday but I accidentally pressed the shutdown button on my keyboard. It is dangerously beside the enter key.
I used a FOR loop to retrieve each of the values and pass it on to text fields. But the instead of displaying the whole word, only the first letter of the values get displayed and it doesn't even pass the values.
[PHP]
<?
$desc_array = count($part_des c);
for($x=0; $x<=$desc_array ; $x++)
{
?>
self.opener.doc ument.form1.par ticles[<?=$x?>].value=<?echo "$part_desc[x]";?>;
<?}?>
[/PHP]
could you in any way improve my code so that it would work? I really need a solution for this. I need to present my program tomorrow afternoon. This is the only problem that some how I couldn't fix. I was actually able to make it work by chance yesterday but I accidentally pressed the shutdown button on my keyboard. It is dangerously beside the enter key.
Comment