- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
function ($param)
{
$cnt = 0;
$result = mysql_query("SELECT * FROM `table` WHERE `table_field` = ".$param);
if ($result)
{
while($row_s = mysql_fetch_assoc($result))
{
$cnt++;
}
}
else
{
$cnt = 0;
}
return $cnt;
}