Jump to content

upload csv to database


jthan03

Recommended Posts

hello everyone! 

 

I want to upload a csv in the database(postgres) using a function from the action class(refer to the attachments). This is the html code for the upload.

<form action="" method="post" enctype="multipart/form-data"> 
  Choose file: <br /> 
  <input name="csv_file" type="file" id="csv_file" /> 
  <input type="submit" name="csv_submit" value="upload" /> 
</form> 

thank you for your reply!

ListAction.class.php

ListView_success.class.php

Link to comment
https://forums.phpfreaks.com/topic/280266-upload-csv-to-database/
Share on other sites

  • 2 weeks later...

I cant really make too much sense of whats going on in there. What did you want to happen?

 

Also, you don't have to specify byref on objects passed as arguments. Objects in PHP are always passed by reference. You've got a lot of stuff commented out... What were you attempting to do?

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.