Jump to content

Problem in Exporting data from mysql using php in Excel form..?


sukhman4

Recommended Posts

Hii..

I have a table in mysql wich contain a sim_number field which is  19 digit unsigned number. i have designed a script using php headear command for exporting data as excel. It is working but with the follwoing problem.

Since sim_number is 19 digit number when it get exported as .xls file. now when that .xls file is opened, excel automatically detect this sim_number as number and , since excel can store only 15 digit in number format it converts its last 4 digits to zeros.

Is there any way to get this sim_number exported as text so that excel store complete 19 digit number in text format.

P.S I cannot attach some charctor to this sim_number because of restricion on file format.

Please help..Thanx

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.