Hi there, I seem to be having a problem using an STR_REPLACE string in the following format - affected area in bold - I basically want to remove the .zip from the end of the file name...
Hope you can help..Thanks, Andy
<?
if ($id == "") {
$sql="SELECT * FROM roms WHERE link LIKE '" . $_GET["letter"] . "%' ORDER BY link ASC";
$result=mysql_query($sql);
$ncount=0;
echo "<font size=1> </font>";
while ($myrow=mysql_fetch_array($result)) {
if ($ncount<500)
{
$ncount=$ncount+1;
$newsbody = str_replace("\'", "'", $newsbody);
$link = str_replace(".zip", "", $link);
?>
<a href="snes.php?id=<? echo $myrow["id"]; ?>">
<?
[B]str_replace(".zip", "", $myrow["link"]);
echo $myrow["link"];[/B]
?>