PCHomepage
Programmer
As a test of the result of a query, I'm using fprint() to output the values to the screen but no matter how I format it, the last column is always 0 when the data is not. All fields are unsigned integers (BIGINT(50) to be specific).
Any ideas why this is happening? The data was imported from a CSV file: could it be a hidden carriage return and, if so, how can I strip it? formatting as %s shows nothing special there.
shows as:
1 1 1 1 0 0 2 0 0
should be:
1 1 1 1 0 0 2 0 2
printf() formatting as:
Any ideas why this is happening? The data was imported from a CSV file: could it be a hidden carriage return and, if so, how can I strip it? formatting as %s shows nothing special there.
shows as:
1 1 1 1 0 0 2 0 0
should be:
1 1 1 1 0 0 2 0 2
printf() formatting as:
Code:
$Format = "%u %u %u %u %u %u %u %u %u \n";