Hello

Can anyone tell me why this doesn't work?
Code:
$result = mysql_query("SELECT ip,port FROM radio WHERE id='".$_GET['id']."'");
This code work
Code:
$result = mysql_query("SELECT ip,port FROM radio WHERE id='1'");

PHP Code:
<?php
// Mike Gieson
// www.wimpyplayer.com
//  2006 Plaino
// v1.0

require_once "db.php";

$result mysql_query("SELECT ip,port FROM radio WHERE id='".$_GET['id']."'");
    
$row=mysql_fetch_array($result);
    
$host=$row['ip'];
    
$port=$row['port'];

// Settings
#$host = "pluto";                // Shoutcast Host
#$port = "8090";                    // Shoutcast Port
$mount "/";                    // Used for alternate path to "Streaming URL" -- leave as "/" for the default setup.
$icecastInterval "100";        // Max number of MB to load
$wimpySwf "wimpy_button.swf";    // Button SWF file name
$width "70";                    // Width of the button
$height "70";                    // Height of the button
$buttonStyle "circle";        // Button style: Can be "circle" or "square";



/////////////////////////////////////////////////
//                                             //
//     NO NEED TO EDIT ANYTHING BELOW HERE     //
//                                             //
//            (unless your a pro)              //
//                                             //
/////////////////////////////////////////////////


$newline "\n";
$streamURL "http://".$HTTP_SERVER_VARS['HTTP_HOST'].$_SERVER['PHP_SELF'];
$configs "theFile=".rawurlencode($streamURL."?action=stream")."&icecast=".$icecastInterval."&buttonStyle=".$buttonStyle."&tptBkgd=yes";
$objectID "wimpybutton";
$action = @$_REQUEST['action'];


if(
$action == "stream"){

    
// Make socket connection
    
$errno "errno";
    
$errstr "errstr";
    
$fp fsockopen($host$port$errno$errstr30);


    
// Establish response headers
    
header("HTTP/1.0 200 OK");
    
header("Content-Type: audio/x-mpeg, audio/x-mpeg-3, audio/mpeg3");
    
header("Content-Transfer-Encoding: binary");


    
// Content-Length is required for Internet Explorer:
    // - Set to a rediculous number
    // = I think the limit is somewhere around 420 MB
    
header("Content-Length: 100000000");


    
// Create send headers
    
$out "GET $mount HTTP/1.1\r\n";
    
$out .= "Host: $host\r\n";
    
$out .= "Connection: Close\r\n\r\n";


    
// Write the returned data back to the resource
    
fwrite($fp$out);


    
// Read resource
    
while (!feof($fp)) {

        
// Get data in 2048 chuncks
        
$outData fgets($fp2048);

        
// Removing shoutcast headers.
        
if (!stristr($outData"icy") && !stristr($outData"content")){
            echo 
$outData;
        }

    }

    
fclose($fp);



} else if (
$action == "getJavaScript"){



$out '// Mike Gieson
// www.wimpyplayer.com
//  2006 Plaion Inc.
// v1.0


// CONFIGS:

wimpySwf = "'
.$wimpySwf.'";
icecastInterval = "'
.$icecastInterval.'";
width = "'
.$width.'";
height = "'
.$height.'";
configs = "'
.$configs.'";
objectID = "'
.$objectID.'";


function writeWimpyButton(){
    outputHMTL = "";
    outputHMTL += \'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" \';
    outputHMTL += \'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" \';
    outputHMTL += \'width="\'+width+\'" \';
    outputHMTL += \'height="\'+height+\'" \';
    outputHMTL += \'id="\'+objectID+\'">\';
    outputHMTL += \'<param name="movie" value="\'+wimpySwf+\'" />\';
    outputHMTL += \'<param name="loop" value="false" />\';
    outputHMTL += \'<param name="menu" value="false" />\';
    outputHMTL += \'<param name="quality" value="high" />\';
    outputHMTL += \'<param name="bgcolor" value="#FFFFFF" />\';
    outputHMTL += \'<param name="flashvars" value="\'+configs+\'" />\';
    outputHMTL += \'<embed src="\'+wimpySwf+\'" \';
    outputHMTL += \'flashvars="\'+configs+\'" \';
    outputHMTL += \'width="\'+width+\'" \';
    outputHMTL += \'height="\'+height+\'" \';
    outputHMTL += \'bgcolor="#FFFFFF" \';
    outputHMTL += \'loop="false" \';
    outputHMTL += \'menu="false" \';
    outputHMTL += \'quality="high" \';
    outputHMTL += \'name="\'+objectID+\'" \';
    outputHMTL += \'align="middle" \';
    outputHMTL += \'allowScriptAccess="sameDomain" \';
    outputHMTL += \'type="application/x-shockwave-flash" \';
    outputHMTL += \'pluginspage="http://www.macromedia.com/go/getflashplayer" />\';
    outputHMTL += \'</object>\';
    document.write(outputHMTL);
    //document.write(\'<br><textarea name="textarea" cols="40" rows="10">\'+outputHMTL+\'</textarea><br>\');
}'
;
echo 
"$out";



} else {

$out '<HTML>
<HEAD>
<TITLE>WimpyCast - Shoutcast through Flash</TITLE>
<script src="'
.$streamURL."?action=getJavaScript".'" /></script>
</HEAD>
<BODY>
<P><b>Shoutcast through Flash </b><br>
Mike Gieson <br>
<a href="www.wimpyplayer.com">www.wimpyplayer.com</a><br>
 2006 Plaino Inc.<br>
v1.0 <br></P>

<SCRIPT LANGUAGE="JavaScript">
writeWimpyButton();
</SCRIPT>


</BODY>
</HTML>'
;


echo 
"$out";

}

?>