php - Local URL is added -


so, i'm trying echo soundcloud tracks stored in database (by url). when last echo called, url is:

/end/public/https://api.soundcloud.com/tracks/121291880&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_rep  

i don't want "/end/public/". why happening? in first echo (echo $musicarray[0]['url'];), url correct (without /end/public). end project name, , public public folder.

for($i = 0; $i < count($musicarray); $i++) { echo $musicarray[0]['name'] . '<br>'; echo $musicarray[0]['url']; echo '<iframe width="75%" height="150" scrolling="no" frameborder="yes" src=' . $musicarray[$i]['url'] . '&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>'; } 

try add whole src of soundcloud inside database instead of concatenating it. using api soundclound , perhaps interfering src.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -