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
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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.