Skinner2001 Posted February 17, 2011 Share Posted February 17, 2011 Hi I am trying to use this function to upload a CSV-format baseball schedule. I copied the example code from the manual website and it worked fine, printing out the contents, array style. I then added my code to the middle of this which just does a bit of analysis of dates and times for unix-style and then writes the stuff into a MySQL DB. It didn't work any more. As soon as I try to use fgetcsv it won't work. PLEASE HELP I have pulled all my remaining hair out! I checked my code with a magnifying glass but any hint of my code near fgetcsv stops the page loading. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/228002-php-function-fgetcsv/ Share on other sites More sharing options...
BlueSkyIS Posted February 17, 2011 Share Posted February 17, 2011 any errors reported? when you View Source, is there no content at all or any errors at the bottom? Link to comment https://forums.phpfreaks.com/topic/228002-php-function-fgetcsv/#findComment-1175727 Share on other sites More sharing options...
Skinner2001 Posted February 19, 2011 Author Share Posted February 19, 2011 OK I fixed it - was this: $field = $data['field') Thanks for caring. Off to buy a wig now... Link to comment https://forums.phpfreaks.com/topic/228002-php-function-fgetcsv/#findComment-1176650 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.