Activity Stream
48,167 MEMBERS
61220 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1.     
    #1
    Member
    Website's:
    forumalb.org

    Default What am i doing wrong

    Hi i have made a mod for the wcddl v2 .
    I want the inex downloads to exexute a search query and from the search query to get the actual download links here is the code...

    PHP Code: 
    if (isset($core->q) )
    {

     ?>
        
        
        <tr><td><div align="center"><span class="<?=strtolower($dl['type'])?>"><?=ucfirst($dl['type'])?></span></td>
        <td><a href="download.php?id=<?=$dl['id']?>"></a> ></a> <a href="full-warez-download-<?=$dl['type']?>-<?=$dl['id']?>-<?=seoname($dl['title'])?>.html"target="_blank"> <?=$core->wordLimiter($dl['title'])?></a></td>
        <td><center><?=$dl[dat]?></center></a></td>
        <td><center><?=$siteLink?></center></a></td>
        <td><center><a href="free-download-<?=seoname($dl['title'])?>.html "target="_blank"><center><img src="images/search.png"title="Free Dowload <?=$dl['title']?>"/></center></td></tr>'
            <?php
            
        
            
            
        
    }
        else{    
            
            
    }

     
    ?>

            <tr><td bgcolor="<?="$row_color"?>"<div align="center"><span class="<?=strtolower($dl['type'])?>"><?=ucfirst($dl['type'])?></span></td>
        <td><a href="download.php?id=<?=$dl['id']?>"></a> ></a> <a href="free-download-<?=seoname($dl['title'])?>.html"target="_blank"> <?=$core->wordLimiter($dl['title'])?></a></td>
        <td><center><?=$dl[dat]?></center></a></td>
        <td><center><?=$siteLink?></center></a></td>
        <td><center><a href="free-download-<?=seoname($dl['title'])?>.html "target="_blank"><center><img src="images/search.png"title="Free Dowload <?=$dl['title']?>"/></center></td></tr>
             <?php
    }

     
    ?>
    i get the following error :


    Parse error: syntax error, unexpected $end in C:\xampp\htdocs\index.php on line 291
    Juxhin_p Reviewed by Juxhin_p on . What am i doing wrong Hi i have made a mod for the wcddl v2 . I want the inex downloads to exexute a search query and from the search query to get the actual download links here is the code... if (isset($core->q) ) { ?> <tr><td><div align="center"><span class="<?=strtolower($dl)?>"><?=ucfirst($dl)?></span></td> Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    here
    Code: 
     else{    
            
            
    }
    delete the }

  4.     
    #3
    Member
    Website's:
    forumalb.org
    it still gives the same error

  5.     
    #4
    Member
    "<?php" at third line from bottom should be moved to the begining of file.
    That's the most obvious error i see - didn't bother checking rest of code.

    Actually scratch that - whole php code is missing here - it's only html data that's echoed for example:

    <?php if (isset($core->q) )
    {
    There should be whole function here...
    ?>
    .

  6.     
    #5
    Member
    Code: 
    <?php if (isset($core->q) )
    {
    
      
        
        <tr><td><div align="center"><span class="<?=strtolower($dl['type'])?>"><?=ucfirst($dl['type'])?></span></td>
        <td><a href="download.php?id=<?=$dl['id']?>"></a> ></a> <a href="full-warez-download-<?=$dl['type']?>-<?=$dl['id']?>-<?=seoname($dl['title'])?>.html"target="_blank"> <?=$core->wordLimiter($dl['title'])?></a></td>
        <td><center><?=$dl[dat]?></center></a></td>
        <td><center><?=$siteLink?></center></a></td>
        <td><center><a href="free-download-<?=seoname($dl['title'])?>.html "target="_blank"><center><img src="images/search.png"title="Free Dowload <?=$dl['title']?>"/></center></td></tr>'
    
            
            
        }
        else{    
            
            <tr><td bgcolor="<?="$row_color"?>"<div align="center"><span class="<?=strtolower($dl['type'])?>"><?=ucfirst($dl['type'])?></span></td>
        <td><a href="download.php?id=<?=$dl['id']?>"></a> ></a> <a href="free-download-<?=seoname($dl['title'])?>.html"target="_blank"> <?=$core->wordLimiter($dl['title'])?></a></td>
        <td><center><?=$dl[dat]?></center></a></td>
        <td><center><?=$siteLink?></center></a></td>
        <td><center><a href="free-download-<?=seoname($dl['title'])?>.html "target="_blank"><center><img src="images/search.png"title="Free Dowload <?=$dl['title']?>"/></center></td></tr>
           
    }
    
     ?>
    .

  7.     
    #6
    Member
    Website's:
    forumalb.org
    thanx ill try it now

  8.     
    #7
    Member
    Website's:
    forumalb.org
    Now i get the following error

    Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\index.php on line 95

    Line 95 is <?php if (isset($core->q) )

  9.     
    #8
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Replace with this code:

    PHP Code: 
    if (isset($core->q) ) {
    ?>

        <tr><td><div align="center"><span class="<?=strtolower($dl['type'])?>"><?=ucfirst($dl['type'])?></span></td>
        <td><a href="download.php?id=<?=$dl['id']?>"></a> ></a> <a href="full-warez-download-<?=$dl['type']?>-<?=$dl['id']?>-<?=seoname($dl['title'])?>.html"target="_blank"> <?=$core->wordLimiter($dl['title'])?></a></td>
        <td><center><?=$dl[dat]?></center></a></td>
        <td><center><?=$siteLink?></center></a></td>
        <td><center><a href="free-download-<?=seoname($dl['title'])?>.html "target="_blank"><center><img src="http://www.besthostingforums.com/images/search.png"title="Free Dowload <?=$dl['title']?>"/></center></td></tr>'

    <?php
            
    } else{

    ?>
       
        <tr><td bgcolor="<?="$row_color"?>"<div align="center"><span class="<?=strtolower($dl['type'])?>"><?=ucfirst($dl['type'])?></span></td>
        <td><a href="download.php?id=<?=$dl['id']?>"></a> ></a> <a href="free-download-<?=seoname($dl['title'])?>.html"target="_blank"> <?=$core->wordLimiter($dl['title'])?></a></td>
        <td><center><?=$dl[dat]?></center></a></td>
        <td><center><?=$siteLink?></center></a></td>
        <td><center><a href="free-download-<?=seoname($dl['title'])?>.html "target="_blank"><center><img src="http://www.besthostingforums.com/images/search.png"title="Free Dowload <?=$dl['title']?>"/></center></td></tr>
       
    <?php
             
    }

    ?>
    That should fix the syntax problem there
    Also, i guess you are not starting the file like that (if its different file)! if its then add <?php at the beginning
    The above code should fix the error

  10.     
    #9
    Member
    Website's:
    forumalb.org
    i still get the same error should i post the whole index.php code here?

  11.     
    #10
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Quote Originally Posted by Juxhin_p View Post
    i still get the same error should i post the whole index.php code here?
    Yes i guess! You need to

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What am I doing Wrong?
    By GBot in forum Whitehat SEO
    Replies: 0
    Last Post: 9th Dec 2013, 06:36 PM
  2. Am i wrong?
    By JonnyB in forum Hosting Discussion
    Replies: 13
    Last Post: 17th May 2011, 01:01 AM
  3. what wrong im doing?
    By mastercho in forum Forum and DDL Discussion
    Replies: 15
    Last Post: 3rd Apr 2011, 03:40 PM
  4. Something Wrong With HF??
    By Jumbo in forum File Host Discussion
    Replies: 16
    Last Post: 22nd Oct 2010, 02:41 PM
  5. Where do i wrong?
    By Porsche_maniak in forum Webmaster Discussion
    Replies: 6
    Last Post: 30th May 2010, 03:39 PM

Tags for this Thread

BE SOCIAL