Saturday, 17 August 2013

How to insert a variable in count() function?

How to insert a variable in count() function?

$id = $_GET['id'];
$result = mysql_query("select Count(id='$id') As Total from topics");
the above code is only working if we put count(id) but i want to get count
of selected variable
how to insert id='$id' in count function its is not working please help
related this..

No comments:

Post a Comment