jthan03 Posted July 18, 2013 Share Posted July 18, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/280266-upload-csv-to-database/ Share on other sites More sharing options...
castis Posted July 26, 2013 Share Posted July 26, 2013 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? Quote Link to comment https://forums.phpfreaks.com/topic/280266-upload-csv-to-database/#findComment-1442240 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.