Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8250455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:53:42+00:00 2026-06-07T23:53:42+00:00

I have a traffic exchange site and I have a small problem on the

  • 0

I have a traffic exchange site and I have a small problem on the surfing area .

Normally the script should choose only sites that have credits but it does not .

I search on google and here also but I couldn’t find my answere .

$hour = date('Y-m-d:H');
$res = mysql_query("update site set hour='$hour', cth=0 where hour!='$hour' && cph!=0");
$query = "select id, url from site where usrid!=".$_SESSION['sess_data']['usrid']." && state='Enabled'";
if ($_SESSION['sess_data']['negact'] == 0) {
    $query = $query." && credits>=1";
}
$query = $query." && (cth<cph || cph=0)";
$query = $query." order by rand() limit 1";
$res = mysql_query($query);
if (mysql_num_rows($res) == 0) {
    $url = $default_site;
    $siteid = 0;
} else {
    $url = mysql_result($res, 0, "url");
    $siteid = mysql_result($res, 0, "id");
}

If I’m right this is the part where the script get’s the websites .

$query = "select id, url from site where usrid!=" . $_SESSION['sess_data']['usrid'] . " && state='Enabled'";

In this line I would like to add a limit , to choose sites that have +5 credits. ( Again , If I’m right )

Thanks .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T23:53:44+00:00Added an answer on June 7, 2026 at 11:53 pm

    USE “WHERE credits > 5” or whatever your “credits” column is called.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On a site that receives a very high amount of traffic some small percent
I have a site that needs to use mod_rewrite to direct traffic to www.example.com
I have a high-traffic site that records web hits in a table, Hits. There's
I have very recently received a lot of traffic to my site that runs
I have a website that in a few months is going to have traffic
We have some third parties that are sending us traffic and have asked us
I have a site running on amazon elastic beanstalk with the following traffic pattern:
So I have a file called cache, which stores traffic analysis of a site,
I'm creating an air traffic control system. I have a class called plane that
While performing some upcoming maintenance, I'm going to have to redirect all site traffic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.