Jump to content

select count


StirCrazy

Recommended Posts

maybe it's just the way I'm writing it but keep getting an error when modifying the below line:-

select count(referrer) from users where referrer='" . mysql_real_escape_string($_SESSION['user']) . "' and activated='y'");

I Need  referrer = $_SESSION['user'] and activated to = 'y' or 'v');

Can anyone help?

Many thanks,
S.C>
Link to comment
https://forums.phpfreaks.com/topic/15198-select-count/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.