Using phpExcel, I have managed to read the whole worksheet. Is there a way I can read only certain values say from cell C15:C18, to insert them into the database?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are plenty of methods:
will read the value of a specific cell (C15 in this case) into the variable $cellValue
or
will read a range of values to an array.
Once you’ve retrieved the contents of a cell to a normal PHP variable, it’s easy enough to insert them into a database as you’d insert any data avalues into a database.