Jump to content

brong112

New Members
  • Posts

    4
  • Joined

  • Last visited

brong112's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Before I put the variable in.. I can't even get it to show with just a youtube link? I'm lost.. <?php echo '<iframe src="http://www.youtube.com/watch?v=IWOA6F2s6Nc" allowfullscreen="no" frameborder="0" height="125" width="182">'; ?> or <?php echo "<iframe src=" . 'http://www.youtube.com/watch?v=IWOA6F2s6Nc' . " allowfullscreen="no" frameborder="0" height="125" width="182">"; ?> ...screw this i'm playing video games.
  2. Thanks, I'm getting closer? <?php $xml=simplexml_load_file("http://x.com/demo/statefarm/id.xml"); $id = $xml->customid; echo '<iframe src=' .$id . ' allowfullscreen="no" frameborder="0" height="125" width="182">'; ?> <?php $xml=simplexml_load_file("http://x.com/demo/statefarm/id.xml"); $id = $xml->customid; echo "<iframe src=\"$id/\" allowfullscreen="no" frameborder="0" height="125" width="182">"; ?>
  3. thanks for the reply.. So I have this <?php $xml=simplexml_load_file("http://x.com/demo/statefarm/id.xml"); $id = $xml->customid; echo "<iframe src="$id" allowfullscreen="no" frameborder="0" height="125" width="182">"; ?> and <?xml version="1.0" encoding="ISO-8859-1"?> <message> <customid>http://www.youtube.com/watch?v=gkTb9GP9lVI</customid> </message> here's my xml file If I try and echo just the id, it works fine. It only shows as a blank page when I'm putting it in the iframe. Edit.. I can't find the right string. I've tried over and over again.
  4. I used to have an acc at phpfreaks.. started coding again. I'd appreciate some help cuz this is pissing me off.. <?php $xml=simplexml_load_file("http://X/demo/statefarm/id.xml"); $id = $xml->customid; echo $id ?> This works fine <?php $xml=simplexml_load_file("http://x.com/demo/statefarm/id.xml"); $id = $xml->customid; echo $id echo "<iframe src="$id" allowfullscreen="no" frameborder="0" height="125" width="182">" ?> This dosen't. I have tried every combination of syntax and google and I just get a blank page. I'd appreciate some help, thanks.
×
×
  • 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.