Jump to content

Reference Number [RESOLVED]


syrkel

Recommended Posts

I am trying to have a Multiplayer Engine through PHP but I need it to read and store multiple variables... So what I am doing is I am sending variables from Flash like so:
[code]for (var d = 0; d<_root.whosonlinearray.length; d++) {
_root.multiplayer_send_lv["loginID"+d] = _root.whosonlinearray[d];
}[/code]
And now in PHP I want it to read $loginID1, $loginID2, and so on. But I have tried such things as:
[code]$t = 0;
$loginID = eval("\$loginID$t");
$t++;[/code]
[code]$t = 0;
$loginID = $("loginID" . $t);
$t++;[/code]
[code]$t = 0;
$loginID =& "\$loginID$t";
$t++;[/code]
[code]$t = 0;
$loginID = "\$loginID$t";
$loginID =& eval($loginID);
$t++;[/code]
But my command that it's referencing still won't work:
[code]if ($row['loginID'] == $loginID) {[/code]
or
[code]if ($row['loginID'] == eval("\$loginID$t")) {[/code]

Or anything of such...

Can anyone help with this?
Link to comment
https://forums.phpfreaks.com/topic/18142-reference-number-resolved/
Share on other sites

  • 5 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.