# Couple of naming questions

**URL:** <https://forum.kirupa.com/t/couple-of-naming-questions/58143>\
**Category:** flash\
**Created:** [July 20, 2004, 3:30am UTC](https://forum.kirupa.com/t/couple-of-naming-questions/58143 "2004-07-20T03:30:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 20, 2004, 3:30am UTC](https://forum.kirupa.com/t/couple-of-naming-questions/58143/1 "2004-07-20T03:30:03Z")

</div>

```php
print "<br>&writename="; 
 
bla bla bla
 
}

```

> eval(“ring”+i).writename.text = this.writename;

I had that piece of code in PHP and Flash and it worked fine.  
However now I want to increment it.  
So I have tried changing the names so that they increment.

```php
 
$count = 0;
while ($array = mysql_fetch_array($fewComments)) {
 print "<br>&writename[$count]="; 
 
bla bla bla
 
$count++;
}

```

> eval(“ring”+i).writename.text = eval(“writename”+i);

Is [color=blue]**&writename[$count]=";**[/color] the correct way to [color=blue][color=black]increment [/color] **&writename=";** [/color] in PHP ?

Is **[color=blue]eval(“writename”+i);[/color]** the correct way to increment **[color=blue]this.writename;[/color]** in Flash ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 20, 2004, 2:37pm UTC](https://forum.kirupa.com/t/couple-of-naming-questions/58143/2 "2004-07-20T14:37:18Z")

</div>

_ **BUMP** _

Someone must know the answer to this…

> Is [color=blue]eval(“writename”+i);[/color] the correct way to increment [color=blue]this.writename;[/color] in Flash ?

I think that the [color=#0000ff]eval(“writename”+i);[/color] is where my error is and this one statement is holding up my project. ☹
