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

Getting the same count everytime

$visitquery = mysql_query("SELECT COUNT(*) FROM visitors WHERE ownerkey = '$uuid' & region = '$selected' AND `date` < DATE_ADD(CURDATE(), INTERVAL +7 DAY)", $connect);
$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

need help in update query
i create a form for update. there are 8 columns in my mysql table. on my main page all the data is r

DOMDocument parsing
Hello, I am parsing an xml file from an API which I have converted into a DOMDocument in php. This i

understanding functions and classes
Code: [Select]
class person {
var $name = "Jimmy Goe";

function get_nam

Got A Free Server :(
So I was given a free server

unexpected T_SL without a shift left token
Nothing too see here, I'm an idiot and resolved the problem.

passing data from one page to another
hey guys
i have the follwoing code to get information from one page and place on another:

(sub)screen resize modification doesn't work after ECC 6 EhP 4 installation

We have previously extended the size of the custom data tab on PO transaction ME23

post to self
Trying to get my form to submit to itself. However I am also trying to use an image for my submit bu

Hi All,

I think I'm finally getting somewhere with pagination!

I can now submit a quer

New to PHP and just trying to understand a little code.
I hope I'm not annoying anyone or breaking the rules but I was wondering about this bit of code righ

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