Rafael Martinez writes:
 > Hei
 > 
 > If I send a SELECT sql-request to my DB and this request returns an 
 > "Empty set" .......
 > 
 > mysql_num_rows(MYSQL_RES *result) returns 0 - This is OK
 > but mysql_num_fields(MYSQL_RES *result) returns 1 - This is not OK ;-)
 > 
 > Why? Am I missing anything?
 > 
 > Sincerely
 > Rafael Martinez
 > 

No, the above is 100 % OK.

A relation with no tuples is still a relation. Like an wmpty set.


Regards,

Sinisa

      ____  __     _____   _____  ___     ==  MySQL AB
     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic
    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaca, Cyprus
  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
             /*/             \*\                Developers Team

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to