Parse error: T_VARIABLE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Parse error: T_VARIABLE

    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">&nbsp;<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>
    H i got an error on opening this page any help?
    error is:
    Parse error: syntax error, unexpected T_VARIABLE in /home/mp3mobc/public_html/mobile/index.php on line 1

    #2
    post this page also here

    Code:
    iphone_head.php

    Comment


      #3
      iphone_head.php:
      Code:
      <?php 
      error_reporting(0);
      include("config.php");
      include("../includes/constants.php");
      include("../includes/database.php");
      include($web_root."mobile/functions/functions.php");
      include($web_root."mobile/functions/init.php");
      ?>
      
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      
      <!-- Title Your Site and help the SEO, remember to make a custom icon Begin --> 
      <title><?=$settings['site_title'];?></title>
      <link rel="apple-touch-icon" href="images/icon.png">
      <meta NAME="description" content="<?=$settings['site_desc'];?>">
      <meta NAME="keywords" content="<?=$settings['site_keywords'];?>">
      <!-- Title Your Site and help the SEO, remember to make a custom icon End --> 
      <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
      <style type="text/css" media="screen">@import "css/x10.css";</style>
      <script type="application/x-javascript" src="js/x10.js"></script>
      </head>

      Comment


        #4
        this normally meens that { or } is missing.
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          strange lol

          Comment


            #6
            remove error_reporting(0);
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment

            Working...
            X