Code:
<?php include("iphone_head.php");?>
<body>
<h1 id="pageTitle"></h1>
<a id="backButton" class="button" href="#"></a>
<a class="button" href="<?=$web_path?>#search" title="New Search" target="_self">Search</a>
<!-- Home Level Code -->
<ul id="home" title="Home" selected="true">
<br><center><img src="<?=$web_path?>images/logo.jpg"></center><br>
<li></li>
<li><a href="#search">Search</a></li>
<li><a href="#top10">Top Searches</a></li>
<li><a href="#recent">Recent Searches</a></li>
<li><a href="#donate">Donate</a></li>
<br>
<center><?php include("temp/footer.php");?></center>
</ul>
<!-- Home Level Code -->
<!-- Search Code --->
<ul id="search" class="plain" title="Search">
<br><center><img src="<?=$web_path?>images/logo.jpg"></center><br>
<li></li>
<center>
<form action="search.php" id="search" method="get">
<input type="text" value="Search Mp3s..." onClick="this.value='';" name="search"> <input name="dosearch" type="submit" value="Search">
</form>
</ul>
<!-- Search Code --->
<!-- Recent Code --->
<ul id="recent" class="plain" title="Recent Searches">
<?php
include $web_root."includes/session.php";
if($type=="lyrics") {
$type = "lyrics";
} elseif($type=="video") {
$type = "video";
} else {
$type = "mp3";
}
$query = 'SELECT * FROM tags ORDER by id DESC LIMIT 15';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
while ($tags = mysql_fetch_assoc($result)){
$tag = $tags[tag];
$tag = str_replace(" ","-",$tag);
if(($type=="lyrics")||($type=="video")) {
$tag = str_replace("-","+",$tag);
}
$tag_name = $tags[tag];
$tag_name = ucwords($tag_name);
echo "<li><a href=\"".$web_path."mobile/search.php?search=$tag&type=$type\">$tag_name</a></li>";
}
?>
</ul>
<!-- Recent Code --->
<!-- Donate Page Code --->
<ul id="donate" class="panel" title="Donate">
<center><h2>Donate</h2></center>
If you think this is cool, see what else we got up our sleeves.<br>
Even a dollar would help us out:) Donate, and let us surprise you ;)<br><br>
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="<?=$paypal_email?>">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Mp3 Search Engine">
<input type="hidden" name="cn" value="Add special instructions to the seller">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<br>Thanks for the consideration, I hope this has been useful to you.
<center><?php include("temp/footer.php");?></center>
</ul>
<!-- Donate Page Code --->
<!-- Top 10 Code --->
<ul id="top10" class="plain" title="Top 10">
<?php
$res = file_get_contents("http://new.music.yahoo.com/");
$i = 1;
while($i <= 10) {
$explode = explode("<div class=\"playLinkContainer\">", $res );
$explodex = explode("</a>", $explode[$i] );
$result = $explodex[0];
$result = explode(">",$result);
$result = $result[1];
$lresult = cleanName($result);
$explode = explode("<a class=\"ymusic_artistLink ymusic_ellipsisbox\"",$res);
$explodex = explode("</a>", $explode[$i] );
$artist = $explodex[0];
$artist = explode(">",$artist);
$artist = $artist[1];
$lartist = cleanName($artist);
echo "<li><a href=\"".$web_path."mobile/search.php?search=".$lartist."-".$lresult."&type=mp3\"><b>".$artist."</b> - ".$result."</a></li>";
$i++;
}
?>
<br>
<center><?php include("temp/footer.php");?></center>
</ul>
<!-- Top 10 Code --->
</body>
</html>
error is:
Parse error: syntax error, unexpected T_VARIABLE in /home/mp3mobc/public_html/mobile/index.php on line 1
Comment