as variable in my script?
you didn't menation which RDBMS you are using, i'll assume mySQL
$result = mysql_query('SELECT COUNT(*) FROM table'); $count = mysql_result($result, 0);