Muhd Zamri MS wrote:
> 
> Hi...
> 
>  I need to somebody clarify what is the problem with this..:
> 
>  MYSQL mysql;
>  MYSQL_RES *result;
>  MYSQL_ROW rows;
>  int i,n;
> 
>  .
>  .
>  .
> 
>  result = mysql_store_result(&mysql);
> 
>  n = mysql_num_rows(result);
> 
>  for(i=0;i<=n;i++)
>   {
>    rows = mysql_fetch_row(result);
>    printf("%s\n",rows);
>   }
> 
>  I got the answer but containing weird symbols...
> 
>  I hope somebody can help me..
> 
>  Thanks in advance.

Maybe the table contains binary data...
Are you sure n is not null?
And are you sure rows is not null?

May be some or all are nulls... Check for it... before...

-- 
Gonzalo Aguilar. Madrid, España (Spain) |
Reymad Studios | [EMAIL PROTECTED]         |
Privado        | [EMAIL PROTECTED]      |
----------------------------------------+

---------------------------------------------------------------------
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