first of all, im not a complete newbie to php, i do understand the basics and I consider myself reasonably advanced in flash ActionScript -which is quite simalar, although i think it would be much easier to do what im asking in this question with php...
- by the way, im creating a little chat program for my site-
what i need to be able to do is give a unique
var to the name of each person in the chat room.
<example of what i want>
(sorry if this code wouldnt actually work in php, but you should be able to work out what im trying to do)
$ItemData2 = $Item2="joe blogs";
$ItemData3 = $Item3="john smith";
$ItemData4 = $Item4="tiger woods";
<general term>
$ItemData + Number increased by one from the previous name = $Item + number increased by one from the previous name = "$user_name";
</general term>
as you can see each name is equal to two vars (ItemData+i and Item+i)
</example>
At the moment, a bit of script is used to organise the users in a textbox called user. i think this bit of code does it.. i think i know what it does. It from line 140 onwards from this url:
http://hosted.barrysworld.net/dhm/users.txt
or search for this code: echo "&usuarios=";
remember, this is only one of about 8 php files which make up the chat, so not all of it will seem very clear.
I really would appreciate it if you took a look at it and try and help me, it would really mean a lot to me.