Moras da pocnes da citas php manual, tamo sve pise lepo.
Evo ti primer kako bi ovo trebalo da ide
//performs the query
$result = mysql_query("SELECT $fields FROM $table WHERE $uniquefield = '$uniquevalue'") or die("Could not perform select query - " . mysql_error());
$num_rows = mysql_num_rows($result);
//if query result is empty, returns NULL, otherwise, returns an array containing the selected fields and their values
if($num_rows == NULL)
{
------
int mysql_num_rows ( resource $result )
|