Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = "SELECT COUNT(name_x) FROM Status where name_x=.$id.";
- $result = mysql_query($query);
- $count = $result;
- $query = "SELECT COUNT(*) as totalno FROM Status where name_x=".$id;
- $result = mysql_query($query);
- while($data=mysql_fetch_array($result)){
- $count = $data['totalno'];
- }
- echo $count;
- $query = "SELECT COUNT(*) FROM `Status` where `name_x`= $id";
- $result = mysql_query($query);
- $row = mysql_fetch_row($result);
- $count = $row[0];
- $query = "SELECT COUNT(*) FROM Status where name_x=$id";
- $result = mysql_query($query);
- $count = mysql_result($result, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement