Count


Posted on 16th Feb 2014 07:03 pm by admin

Getting the same count everytime

Code:
$visitquery = mysql_query("SELECT COUNT(*) FROM visitors WHERE ownerkey = '$uuid' & region = '$selected' AND `date` < DATE_ADD(CURDATE(), INTERVAL +7 DAY)", $connect);
Did you know?Explore Trending and Topic pages for more stories like this.
$row9 = mysql_fetch_array($visitquery);
$visitoramount = $row9[0];
print "[$visitoramount] visits in the last 7 days!";
If $selected = "Blah" it gives the count as " 8"
if $selected = "Dumb" it gives the count as "8" ... Al though there is no "Dumb" in the db.

Sorry if my explaining is off. Just dont know another way to explain it easier.
No comments posted yet

Your Answer:

Login to answer
309 Like 18 Dislike
Previous forums Next forums
Other forums

Log $_POST
How would i log submits on a form, by everyone? I want to then echo the number of submissions.

pull content
I have an existing page, domain/adverts.php which has a good PR. I've just rebuilt my site and the n

listing help
Hi,

at first, great new design!!! I like it,

i got a problem,

I want to list so

Month String to Numeric?
Hi guys,

Given a month as a string, is there a simple way to find the numeric representation

Php - mysql store data and use it later?
Hi, i' making a login page at the moment, however my username + password is stored many different pl

trim function issues
Hi guys, total noob here...

So I've been tinkering around with a html and am using php to em

word wrap in emails help needed
Hello, I understand how wordwrap works in php and have used it well before. However when I used wor

tell csv import script to ignore blank rows?
Hi i have the below script but i get an error if a row is blank ie a return in the csv file at the e

Credit card verification
I have a client who wants to process credit card transactions from his web site rather than the goin

Searching keywords from array
Hello everyone, Im just wondering if someone could help me with another issue im having. Im still le

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash