View Single Post
Old 02-10-2016, 10:43 AM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,058
Code:
$users=array();

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


foreach ($cams as $user) 
{
  if(in_array(strtolower($user->username),$users))
  {
    echo $user->iframe_embed_revshare; 
  
  }
}
That is only going to hit the echo statement if the user name is in the array $users.

Since $users is empty ($users=array() creates an empty array) then you will never hit the echo statement.

So, you have to have a username in $users for that to work.

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