At 5:09 +0000 3/28/02, Federico Halperin wrote: >In a table, I declared a column which is an integer unsigned. > >After calling mysql_fetch_row, I need to convert the value of the >column (i.e. row[0]) to a string.
According to the manual, *all* column values are returned as strings. I'd say you don't need to convert it. > >I tried to solve it doing this: > >char var[11]; >sprintf (var, "%u", row[0]); > >, but it doesn't work. > >Is *row[0] an unsigned int? > >Can anybody help me??? It's a good idea to take a good look at the descriptions of these functions (and the data types they use) in the manual to see how they work. No point in guessing. --------------------------------------------------------------------- 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