Bazzaah Posted May 14, 2011 Share Posted May 14, 2011 Hi I hope someone can help me please. I am using a media player to stream MP3s in an audio dictionary. Words and sentences are generated through a MySQL search. I would like the media player to appear alongside the search result This is example code for echoing the search result echo '<p><div id="small">' . $row['sentence1'] . '</p></div>'; This is the code for the media player <object type="application/x-shockwave-flash" data="/player/dewplayer.swf" width="200" height="30" id="dewplayer" name="dewplayer"> <param name="movie" value="/player/dewplayer.swf" /> <param name="flashvars" value="mp3=' . $row['wordfile'] . '" /> <param name="wmode" value="transparent" /> </object> So basically I'm looking for the results to echoed then the player to appear next to the search result. Any help would be much appreciated Thanks in advance Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted May 14, 2011 Share Posted May 14, 2011 Well right now you echo the text out in <p> </p> tags. if you instead would use a <span> text here </span> you can output them on the same line. Note though you can't put a div inside of a <span> If you rather use a <p> you need to give it the property of float:left; Quote Link to comment Share on other sites More sharing options...
Bazzaah Posted May 15, 2011 Author Share Posted May 15, 2011 I thought (or rather hoped) that it should be a simple solution and indeed it was - many thanks for that, much appreciated! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.