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

Results 1 to 5 of 5
  1.     
    #1
    Banned
    Website's:
    WarezRelease.org ThatHosting.co

    Default DDL Count

    hi

    im tryna count and show sites ddl count, here is wot ihave

    PHP Code: 
               if(isset($core->siteSQL) && isset($core->siteSURL) && $core->numRows != 1) { //if site url are ok and are in db and have downloads
               
                   
    $sid mysql_query("SELECT sid FROM wcddl_sites"); 
                   
                   
    $getnumddls mysql_query("SELECT COUNT (title) AS 'number' FROM wcddl_downloads WHERE sid = '$sid'");
                   
    $result mysql_query($getnumddls) or die(mysql_error());

               
                   
    $siteinfos .= '<b>Site Downloads:</b> '.$result.'';
                    } 
    im getting: Query was empty

    any help.....
    Chris2k Reviewed by Chris2k on . DDL Count hi im tryna count and show sites ddl count, here is wot ihave if(isset($core->siteSQL) && isset($core->siteSURL) && $core->numRows != 1) { //if site url are ok and are in db and have downloads $sid = mysql_query("SELECT sid FROM wcddl_sites"); $getnumddls = mysql_query("SELECT COUNT (title) AS 'number' FROM wcddl_downloads WHERE sid = '$sid'"); $result = mysql_query($getnumddls) or die(mysql_error()); Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    Website's:
    wrzc.org
    Try this - not tested and I haven't used WCDDL in months.

    PHP Code: 
    <?php
    if(isset($core->siteSQL) && isset($core->siteSURL) && $core->numRows != 1) {
        
    $query_siteid mysql_query("SELECT sid FROM wcddl_sites WHERE url = '" $core->siteSURL "'");
        
    $siteid mysql_result($query_siteid,0);

        
    $query_total mysql_query("SELECT COUNT(*) FROM wcddl_downloads WHERE sid = '" $siteid "'");
        
    $total mysql_result($query_total,0);
        
    $siteinfos .= '<b>Site Downloads:</b> '.$total.'';
    }
    Ideally you wouldn't have to do a query to get the sid. You should have it someplace already in the script called for that page but anyway....
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  4.     
    #3
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    yo now this shows sites having 0 ddls.

  5.     
    #4
    Respected Developer
    Website's:
    wrzc.org
    I can't remember wcddl and It's late so just replace
    $siteinfos .= '<b>Site Downloads:</b> '.$total.'';

    with

    $siteinfos .= '<b>'.$siteid.' Site Downloads:</b> '.$total.'';


    You'll get a number before the Site Downloads part and it should be the id number of the site. If your not getting that then we can find the problem easier
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  6.     
    #5
    Member
    Website's:
    Proaudiozone.info HdMoviesNxT.com
    Chris2009 reply to your pm plz

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Count to 100
    By Djlatino in forum General Discussion
    Replies: 38
    Last Post: 17th Sep 2011, 07:15 AM
  2. Fileserve Count Zero. Why???
    By makfun in forum File Host Discussion
    Replies: 13
    Last Post: 13th Mar 2011, 04:36 PM
  3. Count the Farts
    By upnorth in forum General Discussion
    Replies: 0
    Last Post: 13th Oct 2010, 07:30 AM
  4. Count on KWWH..
    By Devilz in forum General Discussion
    Replies: 12
    Last Post: 5th Jul 2010, 05:58 PM
  5. WarezFX is down for the count...
    By LinkFire in forum Webmaster Discussion
    Replies: 45
    Last Post: 27th Jan 2009, 03:21 AM

Tags for this Thread

BE SOCIAL