On Sunday 23 July 2006 10:26 pm, ali asghar torabi parizy wrote: > while ((row = mysql_fetch_row(res_set)) != NULL) {
while (row = mysql_fetch_row(res_set)) would do the same thing, NULL check shouldn't be necessary. > for (i=0; i<mysql_num_fields(res_set); i++) { I hope your client is inserting that < in there, that may be what's causing your problem (not to mention it's <...) > printf("%s\n",row[i] != NULL ? row[i] : "NULL"); > } > } -- Chris White PHP Programmer/DBanned! Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]