Jump to content

[SOLVED] count question


Darkmatter5

Recommended Posts

I have this query

$query=mysql_query("SELECT COUNT(member_id)
  FROM $dbnameprim.$pagedb
  WHERE mem_username='$username'
  OR mem_email='$email'
  ") or die(mysql_error());

 

Now how can I use this query to get the value of this query into a variable named $count?  BTW if I manually substitute the variables in the query, the query gives me the result I expect.

Link to comment
https://forums.phpfreaks.com/topic/130299-solved-count-question/
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.