View Single Post
Old 02-10-2016, 01:25 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,058
The url that is being clicked on looks like this: chat.php?/lexxxierose

That is not right. You want something like chat.php?cam=lexxxierose or something along that line. You need a variable name in there to pass in.

So if it is chat.php?cam=lexxxierose then in chat.php you would use $_GET['cam'] to get at the name lexxxierose

So you would not need the array $users in there.

Code:
$cams = new SimpleXMLElement('cams.xml', null, true);

foreach ($cams as $user) 
{
  if(strtolower($user->username)==$_GET['cam'])
  {
    echo $user->iframe_embed_revshare; 
  }
}
That is a simple version of what you need to do.


.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook