Jump to content

Connecting to Excel via ODBC


fog_2003

Recommended Posts

I am conecting to an Excel spreadsheet via php odbc_conn funtion.  It works but I have a list of room numbers like this in excel

1400
1401
1402

and when I retrieve the same numbers via php it comes out like this

1400.0
1401.0

I tried formatting the data differently in Excel and nothing happened.  Anyone know why this would be happening or how to reformat the variables in php. 

Thanks
Link to comment
https://forums.phpfreaks.com/topic/28827-connecting-to-excel-via-odbc/
Share on other sites

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.