PHP calling ID
Posted: Sun Mar 01, 2009 7:06 am
Hi everybody i am new with php script so i maked this player code and i want anyone can help me how to make or get id list like this
$mURL[1] = 'http://domain.com/path/music1.mp3';
i mean how to connect or calling the id=music 1
and here are my all scripts.
link code:
<A HREF="javascript:void(1)"onclick="window.open('play media.php?id=<?php echo "music 1"; ?>','linkname','height=50, width=480, resizable=0, scrollbars=1')">Play</a>
and this is my play media.php code
<?php
$mURL=$_REQUEST['id'];
?>
<html>
<head>
<title></title>
</head>
<body>
<div align="center">
<center>
<table align="center" border="3" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#0000FF" width="45" id="AutoNumber1">
<tr>
<td >
<p align="center">
<object id="p67"
height=45 width=434
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/">
<param name="URL" value="http://domain.com/<?php echo $mURL; ?>" ref>
<param name="autostart" value="-1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="7117">
<param name="_cy" value="1191">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
name="p12"
width=434
height=45
src="http://domain.com/<?php echo $mURL; ?>"
showcontrols="true"
autostart="false"> </embed>
</object>
</td>
</tr>
</table>
</html>
Good answer
thank you all.
$mURL[1] = 'http://domain.com/path/music1.mp3';
i mean how to connect or calling the id=music 1
and here are my all scripts.
link code:
<A HREF="javascript:void(1)"onclick="window.open('play media.php?id=<?php echo "music 1"; ?>','linkname','height=50, width=480, resizable=0, scrollbars=1')">Play</a>
and this is my play media.php code
<?php
$mURL=$_REQUEST['id'];
?>
<html>
<head>
<title></title>
</head>
<body>
<div align="center">
<center>
<table align="center" border="3" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#0000FF" width="45" id="AutoNumber1">
<tr>
<td >
<p align="center">
<object id="p67"
height=45 width=434
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/">
<param name="URL" value="http://domain.com/<?php echo $mURL; ?>" ref>
<param name="autostart" value="-1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="7117">
<param name="_cy" value="1191">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
name="p12"
width=434
height=45
src="http://domain.com/<?php echo $mURL; ?>"
showcontrols="true"
autostart="false"> </embed>
</object>
</td>
</tr>
</table>
</html>
Good answer
thank you all.