Тёмный

Import Data From Excel To MySQL Using PHP | PHP MySQL Excel Tutorial 

David G Tech
Подписаться 7 тыс.
Просмотров 49 тыс.
50% 1

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 120   
@qasimsayyed9090
@qasimsayyed9090 Год назад
Very helpful I am Searching for this concept 😃
@DavidGTech
@DavidGTech Год назад
Glad it was helpful!
@asliinfotech9342
@asliinfotech9342 8 месяцев назад
Thanks bro. Keep up doing such wonderful tutorials. Thanks a lot!!!
@DavidGTech
@DavidGTech 8 месяцев назад
Thanks, will do!
@srivaishnaviganesan286
@srivaishnaviganesan286 25 дней назад
Thank you so much for this code, it really helped.
@nwstep1184
@nwstep1184 2 года назад
Thanks it's really very helpful
@DavidGTech
@DavidGTech Год назад
You're welcome!!! Thanks for watching...
@user-qz7hd6rq2q
@user-qz7hd6rq2q 6 месяцев назад
Amigo, buenas, una pregunta, hay alguna manera de que antes de presionar el boton "Import" se vean reflejados los datos del excel en la tabla? digo, como para que se vea lo que vas a importar como segunda capa de seguridad para no subir una mala informacion, ya que ahí muestra la infomacion en la tabla, pero despues de haberla importado¿? gracias.
@DavidGTech
@DavidGTech 3 месяца назад
Hola @user-qz7hd6rq2q, Sí, es posible mostrar los datos del archivo Excel en la tabla antes de presionar el botón "Importar". Puedes cargar el archivo Excel en el frontend y mostrar los datos en una tabla como una vista previa para verificar antes de importarlos. Esto proporciona una capa adicional de seguridad para asegurar que no se suba información incorrecta. ¡Gracias por tu pregunta! 😊
@xxxsutilxxx
@xxxsutilxxx Год назад
thanks for the idea it helps alot
@DavidGTech
@DavidGTech Год назад
You're welcome! I'm really glad to hear that the idea helped you out. If you have any more questions or need further assistance, feel free to ask. Best of luck with your data importing project using PHP and MySQL! 🚀
@user-nv5xs8lg3w
@user-nv5xs8lg3w 6 месяцев назад
Hi sir i have some problem, data transfer from excel file to database not working, but it stores excel file in the upload folder. please help
@zigijutemari
@zigijutemari 6 месяцев назад
make sure if you have any spelling or other error @7:17 at line 48 to 51
@DavidGTech
@DavidGTech 3 месяца назад
Hi @user-nv5xs8lg3w, Hi, if the data transfer from the Excel file to the database isn't working but the file is stored in the upload folder, double-check your code that reads and processes the Excel file. Make sure the data is being parsed correctly and the database insert statements are executed properly. Let me know if you need more specific help! 😊
@pritamkarmakar4100
@pritamkarmakar4100 Год назад
Thank you sir
@DavidGTech
@DavidGTech Год назад
You're very welcome! Thanks for watching!
@oko.b.3085
@oko.b.3085 7 месяцев назад
script pushes nothing to database when importing .xls file. when importing .xlsx all works good. what problem can be here?
@DavidGTech
@DavidGTech 3 месяца назад
Hi @oko.b.3085! It sounds like the issue might be with how the script handles different file formats. Ensure your script supports both .xls and .xlsx formats. You might need to use different libraries or settings to handle .xls files correctly.
@kirana.g581
@kirana.g581 7 месяцев назад
Hi data transfer from excel file to database not working, but it stores excel file in the upload folder. Do we need to install the composer in the folder or any other installation needed for successful transfer of data. At present there is no error. While inspecting it shows internal server error. Need help....
@anonymous-ei2pk
@anonymous-ei2pk 7 месяцев назад
So this video is not recommendable for newbie learning at webdev.?
@DavidGTech
@DavidGTech 3 месяца назад
Hi @kirana.g581! If your data transfer is not working but the file uploads correctly, there might be an issue with the script processing the Excel file. Ensure all necessary libraries are installed, such as PHPExcel or PhpSpreadsheet, and verify your server configuration. An internal server error often indicates a server-side issue, so checking your server logs can provide more details. If Composer is needed for your libraries, make sure all dependencies are installed correctly. Let me know if you need further assistance!
@DavidGTech
@DavidGTech 3 месяца назад
Hi @anonymous-ei2pk! This video can still be useful for newbies, but it may require some additional troubleshooting and understanding of server configurations and library installations. If you're new to web development, don't get discouraged. These issues are part of the learning process, and asking for help, like @kirana.g581 did, is a great way to learn and improve! If you have specific questions, feel free to ask!
@zigijutemari
@zigijutemari 6 месяцев назад
Thank you
@DavidGTech
@DavidGTech 3 месяца назад
Hi @zigijutemari, You're welcome! 😊 Glad I could help!
@suhadkanaan7598
@suhadkanaan7598 Год назад
hello .. Thanks for helping video.. I have a problem when upload Excel file to database..the arabic letters turns to unclear symbols.. how to solve this problem please???
@DavidGTech
@DavidGTech Год назад
Hello, thanks for watching. It sounds like you are experiencing an issue with character encoding when uploading an Excel file with Arabic text to a database. Check the character encoding settings in your database: Make sure that your database is set up to handle Arabic characters correctly. UTF-8 is the most commonly used character encoding for international text, and should be supported by most databases. Check your database documentation to ensure that it is configured correctly.
@jastinmagayon3128
@jastinmagayon3128 4 месяца назад
why the content of excel file dont show instead its a defaukt word etc. hope that you can notice thank you
@DavidGTech
@DavidGTech 3 месяца назад
Hi @jastinmagayon3128, If the content of your Excel file isn't showing correctly, it might be due to how the data is being read or displayed. Ensure you're using the correct library and methods to parse the Excel file. Let me know if you need more help! 😊
@audday6
@audday6 2 года назад
kak kalo import ke tabel yangg sudah ada dan importnya menggunakan modal gimana kak
@nonopanzu1193
@nonopanzu1193 Год назад
Hi David. There are 62 issues open in your code as per GitHub and not yet solved. Do you still maintain it?
@DavidGTech
@DavidGTech Год назад
Could you please explain it more? I don't really understand what you mean
@strangeguyoftheinternet151
@strangeguyoftheinternet151 Год назад
Hi, why does it not work when it is online and works fine when its on local machine? is it for offline use only?
@DavidGTech
@DavidGTech Год назад
Hi, yes it does work online
@thihaui
@thihaui Год назад
I can't upload excel to sql but upload history is saved. Please help me with this problem
@DavidGTech
@DavidGTech Год назад
I'm sorry to hear that you're experiencing difficulties with uploading Excel files to SQL. Can you please provide me with some additional information about the issue? For example, what type of error message are you receiving? Also, have you checked to ensure that your Excel file is formatted correctly for SQL? Once I have more information, I will do my best to help you find a solution to this problem.
@rimafilms3186
@rimafilms3186 Год назад
Thanks greate
@DavidGTech
@DavidGTech Год назад
You are welcome
@user-vd7pl5cs3r
@user-vd7pl5cs3r 7 месяцев назад
Salam bro, i did everything as you teach on the video, unfortunately the file/data that submitted inti database is not success. There is no data uploaded after i press submit button. Please help me :(
@DavidGTech
@DavidGTech 3 месяца назад
Wa alaikum assalam! It sounds like there might be an issue with the data submission process. Double-check your PHP script to ensure that it correctly processes the form data from the uploaded Excel file and inserts it into the MySQL database. Look for any potential errors or missing steps in your PHP code that could be causing the data not to upload successfully. If you need further assistance, feel free to share more details or specific parts of your code, and I'll do my best to help you troubleshoot and resolve the issue.
@jeffrydelgado5334
@jeffrydelgado5334 2 года назад
New subscriber here! Your tutorials are great and it really helps me a lot in my current project. Regarding this tutorial, I just want to ask if there's a function that will restrict the data from inserting into the database if there's already a data that has the same value in the new excel file you want to import. Thank you!
@DavidGTech
@DavidGTech 2 года назад
Wow, thank you... Yeah, there is. stackoverflow.com/questions/19714341/prevent-duplicate-records-to-a-table-using-php
@krishnamoorthyaachari6220
@krishnamoorthyaachari6220 2 года назад
i am unable to get the source code
@DavidGTech
@DavidGTech 2 года назад
The source code is in the description of video, thank you for watching!
@skiiiworld6205
@skiiiworld6205 2 месяца назад
this works without installing composer into CMD?
@DavidGTech
@DavidGTech Месяц назад
Yes, this works without installing composer into CMD!
@samuelkim2340
@samuelkim2340 Год назад
Thank you for your help
@DavidGTech
@DavidGTech Год назад
You're welcome! Thanks for watching...
@qasimsayyed9090
@qasimsayyed9090 Год назад
Thanks 😊
@DavidGTech
@DavidGTech Год назад
You're welcome!
@MarekCzerepowicki
@MarekCzerepowicki Год назад
How read all sheets data from multiple sheets xlsx file?
@DavidGTech
@DavidGTech 3 месяца назад
Hi @MarekCzerepowicki! To read data from all sheets in a multi-sheet XLSX file, you can use a library like PHPExcel or PhpSpreadsheet. These libraries provide methods to loop through each sheet and extract data accordingly. If you need more specific instructions or an example, let me know!
@bloodshotgamingff
@bloodshotgamingff Год назад
if suppose the excel is empty means so what does it means.......
@DavidGTech
@DavidGTech Год назад
Maybe your codes that aren't fully correct or your Excel version that not supported
@MohamedAhmedH93
@MohamedAhmedH93 Год назад
Hello, Thanks for sharing but, When uploading no successfuly msg appair the page just reload and nothing happens, also the file save in uploaded files but its not uploaded to db can you fix it please ?
@DavidGTech
@DavidGTech 9 месяцев назад
Hi @MohamedAhmedH93, I appreciate your feedback and I'm sorry to hear about the issues you're facing. Let's work together to troubleshoot and resolve these problems: - Success Message Display: Check if your success message is properly implemented in your PHP code. Ensure it's set to display when the upload and database insertion are successful. - File Upload to Database: Double-check the portion of your PHP code responsible for saving data to the database. Verify that all necessary fields are being properly populated. - Error Handling: Implement error handling in your PHP code to capture any potential issues during the upload process. Check for error messages that might provide insights into what's going wrong. - Database Connection: Confirm that your database connection is correctly configured. Ensure that there are no connection errors preventing the data from being stored in the database. - File Permissions: Ensure that the directory where your uploaded files are saved has the correct permissions to allow file writing. If the issue persists after checking these steps, consider sharing the relevant sections of your PHP code (excluding sensitive information) so I can take a closer look and provide more specific guidance. Feel free to provide more details, and we'll work together to fix this!
@pulaksingh5963
@pulaksingh5963 Год назад
in my mac its uploading the excel file to Uploads folder but sql query is not injecting the data to database ps: there is also no error
@DavidGTech
@DavidGTech Год назад
Thank you for reaching out and sharing your experience! It sounds like you've successfully uploaded the Excel file to the 'Uploads' folder, but you're facing an issue with the SQL query not injecting the data into the database. This kind of situation can have a few potential reasons, and I'm here to help you troubleshoot it. Here are a couple of steps you can take to identify and address the issue: - Check Error Messages: First, make sure to check for any error messages that PHP or MySQL might be generating. These messages can provide valuable insights into what's going wrong. You can enable error reporting in your PHP script or check the MySQL error logs. - Database Connection: Verify that your database connection is established correctly. Double-check the connection credentials, hostname, username, and password in your PHP code. - SQL Syntax: Review the SQL query you're using to inject the data into the database. Make sure the query is correctly structured and that the table name and column names match your database schema. - Data Format: Ensure that the data being extracted from the Excel file is in the expected format and matches the data types of the corresponding columns in your database table. - Escaping and Security: Be sure to properly escape and sanitize the data before injecting it into the SQL query. This helps prevent SQL injection vulnerabilities and ensures data integrity. - Permissions: Check the permissions of the 'Uploads' folder and make sure it's writable by the web server. Also, ensure that the MySQL user has the necessary permissions to insert data into the specified table. If you've reviewed these aspects and are still encountering issues, don't worry. Debugging can sometimes be a process of trial and error. Feel free to share more details about your code or any error messages you're encountering, and I'll do my best to assist you further. Remember, each setup can have its own nuances, so we'll work through this together. Good luck!
@ManulBandara
@ManulBandara 7 месяцев назад
Nice video
@DavidGTech
@DavidGTech 3 месяца назад
Hi @ManulBandara! Thanks! 😊 Glad you enjoyed the video! 🙌
@yusufilyas1952
@yusufilyas1952 2 года назад
importnya saya gk berhasil kak php versi 7.4 apa pengaruh versi phpnya
@josefklufik5906
@josefklufik5906 9 месяцев назад
Hi David, hi, I have a small problem, the code works correctly, only 15 empty rows are always uploaded to the database after any import. It's a weird problem. Thanks for the reply.
@josefklufik5906
@josefklufik5906 9 месяцев назад
"require" must be together at the beginning, otherwise the import into the DB is not functional
@DavidGTech
@DavidGTech 9 месяцев назад
Yes, correct
@024fiqifalah7
@024fiqifalah7 2 года назад
bang mau tanya, pas saya upload kan data nya kok ada satu data yang hilang itu kenapa ya? padalan di table excel nya udah bener. mohon pencerahannya 🙏
@DavidGTech
@DavidGTech 2 года назад
Harusnya nggak kaya gitu sih, coba aja lagi dah
@sopianamarlina9785
@sopianamarlina9785 Год назад
ka untuk versi 8.1.10 ini ga bisa ya, file excel readernya banyak error
@indahnovita_dewi
@indahnovita_dewi 5 месяцев назад
Iyaa, mungkin ini untuk versi PHP 5 sma 7 kek nya kak, kalau di versi 5 bisa kak
@DavidGTech
@DavidGTech 3 месяца назад
Hi @sopianamarlina9785! Jika versi PHP 8.1.10 menyebabkan banyak error pada file Excel reader, pastikan Anda menggunakan versi terbaru dari library seperti PhpSpreadsheet yang kompatibel dengan PHP 8.1.10. Versi library yang lebih lama mungkin tidak sepenuhnya kompatibel dengan versi PHP yang lebih baru. Jika ada pertanyaan lebih lanjut, jangan ragu untuk bertanya!
@wenhankho1098
@wenhankho1098 Год назад
nice song
@DavidGTech
@DavidGTech Год назад
Thank you
@Cz-rg2sb
@Cz-rg2sb 7 месяцев назад
Salam bro, I need help.. why data not appear in database after i press submit button? :(
@DavidGTech
@DavidGTech 3 месяца назад
@Cz-rg2sb Salam! It seems like there might be an issue with the data submission process. Make sure that your form is correctly configured to send data to the PHP script that processes the form. Check your PHP script for any errors that might prevent data from being inserted into the database. If you're still facing issues, feel free to ask for more specific help, and I'll do my best to assist you!
@zalimkhan7196
@zalimkhan7196 Год назад
Bro it show me warning (warning move_uploaded_file(Upload/2023......) Fails to open stream: No such file or directory in C:\xampp\htdocs\upload\index.php on line 56 ) Please help me bro 🙏
@DavidGTech
@DavidGTech Год назад
I'm sorry to hear that you're experiencing an error message. It sounds like there might be an issue with the file path. Have you tried double-checking the directory and file name to make sure they match the upload code?
@sithanyak4151
@sithanyak4151 7 месяцев назад
could you please provide this codeigniter code?
@DavidGTech
@DavidGTech 3 месяца назад
Hi @sithanyak4151! Unfortunately, I can't provide CodeIgniter code directly here, but you can adapt the PHP code to work within the CodeIgniter framework by following their documentation. If you need specific help, feel free to ask!
@hoaho1185
@hoaho1185 Год назад
why it doesn't work on version 8.2.0. I used VS Code
@DavidGTech
@DavidGTech Год назад
The compatibility of the code shown in the video with version 8.2.0 of your tools (such as VS Code) may vary, as the video might have been created using different versions.
@satwik-ej6us
@satwik-ej6us Год назад
bro i am getting $reader line as error please could u help me to resolve it
@DavidGTech
@DavidGTech Год назад
Hey there! I'm sorry to hear that you're encountering an error with the '$reader' line. Let's see if we can figure it out together and get your code working! To better assist you, could you please provide me with some additional information? Specifically, I'd need to know which part of the code you are referring to, and any error messages or codes that are displayed when you encounter the issue. This will help me pinpoint the problem more accurately. In the meantime, here are a few general tips that might help you troubleshoot the error: - Make sure that the variable '$reader' is properly defined before its usage. - Double-check if the correct libraries or modules are imported or included in your PHP script. - Verify if the file you are trying to read exists in the specified location. Once you share more details about the error, I'll be able to provide a more specific solution. Don't worry; we'll get this sorted out together! Feel free to ask any questions, and I'll do my best to assist you.
@VishwasKale51
@VishwasKale51 Год назад
xls format not getting upload - please suggest
@DavidGTech
@DavidGTech Год назад
- Check the file size: Some systems may have a limit on the file size that can be uploaded. Make sure your Excel file is within the acceptable file size limit. - Check the file type: Make sure that the file you are trying to upload is in the correct format. Sometimes the file extension might be incorrect, so try changing the file extension to .xlsx and see if it works. - Check the file name: Try renaming the file to something shorter and simpler, without any special characters or spaces. - Check for errors in your code: Make sure there are no errors in your code that could be preventing the file from being uploaded. - Try uploading a different Excel file: If you're still having trouble, try uploading a different Excel file to see if the issue is with the file itself or with your system.
@govindalatiya
@govindalatiya Месяц назад
Code is not working
@rilannn23
@rilannn23 Год назад
itu kan mengarahkan excel A nya pakai $row[0] nah terus cara mengarahkan ke nomor excel nya bagaimana kak?
@DavidGTech
@DavidGTech 3 месяца назад
Hi @rilannn23! Untuk mengarahkan ke nomor kolom Excel tertentu, kamu bisa menggunakan indeks kolom dalam array $row. Misalnya, jika kamu ingin mengakses kolom B, kamu akan menggunakan $row[1], kolom C menggunakan $row[2], dan seterusnya. Jika ada pertanyaan lebih lanjut, jangan ragu untuk bertanya!
@afayyub5831
@afayyub5831 2 года назад
gan,kalau input file XLS bisa kah?
@DavidGTech
@DavidGTech 2 года назад
Yeah, bisa
@afayyub5831
@afayyub5831 2 года назад
@@DavidGTech gan ini pakai xlsx berhasil,ketika pakai file XLS berhasil masuk d folder uploads tp data base cm muncul kotak2 & tnd tny??,,knp ya gan?
@DavidGTech
@DavidGTech 2 года назад
Hmm iya sih, saya coba juga begitu, kayanya emang cuman bisa .xlsx saja yang versi excel terbaru
@MYusufSofiyawan
@MYusufSofiyawan 3 месяца назад
@@DavidGTech wkwkwk pantesan saya cari2 ga bisa
@user-nv5xs8lg3w
@user-nv5xs8lg3w 6 месяцев назад
Good Day sir is this permanent ?
@DavidGTech
@DavidGTech 3 месяца назад
Hi @user-nv5xs8lg3w, Yes, it is. 😊 Once the data is imported into your MySQL database, it will remain there permanently unless you choose to delete or modify it. Let me know if you have any more questions!
@twj14
@twj14 Год назад
bro upload ke direktori filenya berhasil, ada filenya, tapi pas post ke database, dia gak masuk, itu kenapa ya ?
@DavidGTech
@DavidGTech Год назад
Kemungkinan ada yang salah di kode insert ke database phpnya
@twj14
@twj14 Год назад
@@DavidGTech udh fix bro pake library yg lain
@mzeinalbalki
@mzeinalbalki Год назад
@@twj14 pake library apa kalo boleh tau bro?
@ozira55
@ozira55 Год назад
@@twj14 pake library ap bro?
@user-wf8nq7wr5j
@user-wf8nq7wr5j 8 месяцев назад
why it doesnt work?
@DavidGTech
@DavidGTech 8 месяцев назад
Hi @user-wf8nq7wr5j, I'd be happy to help you troubleshoot the issue, but I'll need more information to provide a specific solution. Could you please provide details on: Any error messages you're encountering. The specific step where you're facing the problem. Any code snippets related to the part that isn't working. With this additional information, I'll be better able to assist you in getting your import from Excel to MySQL with PHP up and running. Looking forward to helping you resolve this!
@ideamark8787
@ideamark8787 9 месяцев назад
Fatal error: Uncaught ValueError: XMLReader::open(): Argument #1 ($uri) cannot be empty in C:\xamp\htdocs\php\excell\excelReader\SpreadsheetReader_XLSX.php:960 Stack trace: #0 C:\xamp\htdocs\php\excell\excelReader\SpreadsheetReader_XLSX.php(960): XMLReader->open('') #1 C:\xamp\htdocs\php\excell\excelReader\SpreadsheetReader.php(238): SpreadsheetReader_XLSX->rewind() #2 C:\xamp\htdocs\php\excell\excell.php(42): SpreadsheetReader->rewind() #3 {main} thrown in C:\xamp\htdocs\php\excell\excelReader\SpreadsheetReader_XLSX.php on line 960 i got this error how can i fix it sir?
@DavidGTech
@DavidGTech 9 месяцев назад
Hi @ideamark8787, I appreciate you reaching out, and I'm sorry to hear about the error you're facing. The error you've mentioned indicates an issue with XMLReader and an empty URI. Here are a few steps you can take to troubleshoot this: - Check File Path: Make sure that the file path you're providing to the XMLReader is correct. The error might occur if the file is not found. - File Existence: Confirm that the Excel file exists at the specified path. If the file is not found, XMLReader might receive an empty URI. - File Permissions: Ensure that the PHP script has the necessary permissions to read the Excel file. File permissions issues can sometimes lead to this error. - File Content: Validate that the Excel file is in the correct format and not corrupted. An invalid or corrupted file might cause XMLReader to encounter issues. If the problem persists, you might want to share the relevant sections of your PHP code where you're using XMLReader and opening the file. This will help me provide more specific assistance. Feel free to provide more details, and we'll work together to resolve this issue!
@ShovenaFamily
@ShovenaFamily 2 года назад
PHP version ?
@DavidGTech
@DavidGTech 2 года назад
>7
@ShovenaFamily
@ShovenaFamily 2 года назад
@@DavidGTech sudah coba di versi 8 belum? Saya pakai versi 8 data excel masuk masih dianggap null.
@DavidGTech
@DavidGTech 2 года назад
Kayanya excelnya, soalnya xls dan xlsx beda
@ShovenaFamily
@ShovenaFamily 2 года назад
@@DavidGTech udah 2 file dimasukkin, padahal syntaknya masih manual, arraynya di anggap null.
@sunithabanka4927
@sunithabanka4927 Год назад
i got this error
@DavidGTech
@DavidGTech Год назад
I'm sorry to hear that you're encountering an error. In order to help you, can you please provide me with more details about the error message you're receiving? This will allow me to better understand the issue and provide more specific guidance on how to resolve it.
@sunithabanka4927
@sunithabanka4927 Год назад
please reply me
@DavidGTech
@DavidGTech Год назад
I apologize for the delay in responding to your comment. I'm here to assist you now. How can I help you?
@PavanYadav-lj7uv
@PavanYadav-lj7uv Год назад
Vaue😢❤ Qorl😢❤ww 0:12 🎉m Qe
@DavidGTech
@DavidGTech Год назад
Thanks for watching!
@user-iz1mq5im9e
@user-iz1mq5im9e Год назад
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ...LOCAL\excelReader\SpreadsheetReader_XLSX.php on line 456 Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ...LOCAL\excelReader\SpreadsheetReader_XLSX.php on line 581 Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ...LOCAL\excelReader\SpreadsheetReader_XLSX.php on line 1049 Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ...LOCAL\excelReader\SpreadsheetReader_XLSX.php on line 1083 Fatal error: Uncaught Error: Class "ZipArchive" not found in ...LOCAL\excelReader\SpreadsheetReader_XLSX.php:217 Stack trace: #0 ...LOCAL\excelReader\SpreadsheetReader.php(166): SpreadsheetReader_XLSX->__construct('../private/uplo...') #1 ...LOCAL\Motorpool\vh_list.php(29): SpreadsheetReader->__construct('../private/uplo...') #2 {main} thrown in ...LOCAL\excelReader\SpreadsheetReader_XLSX.php on line 217
@DavidGTech
@DavidGTech Год назад
Thank you for bringing up the warnings and fatal error you encountered. The warnings you mentioned about the 'continue' statements in the 'SpreadsheetReader_XLSX.php' file are related to changes in PHP versions. The warning suggests using 'continue 2' instead of 'continue' to explicitly continue the outer loop. This adjustment helps to avoid unexpected behavior. Regarding the fatal error stating that the 'ZipArchive' class is not found, it indicates that the required PHP extension for ZIP file manipulation is missing or not enabled on your server. The 'ZipArchive' class is necessary to handle ZIP files, which are used in the process of reading XLSX files in the example. To resolve these issues, you can follow these steps: 1. Update the 'SpreadsheetReader_XLSX.php' file by replacing the 'continue' statements with 'continue 2' as suggested in the warning messages. 2. Enable the 'ZipArchive' extension in your PHP configuration. You can do this by locating the 'php.ini' file and uncommenting the line that enables the 'zip' extension (e.g., remove the semicolon at the beginning of the line). If you don't have access to the 'php.ini' file, contact your hosting provider to enable the extension for you. If you encounter any further issues or need additional assistance, please provide more details, thank you!!!
@wc2203-c6p
@wc2203-c6p Год назад
Hi. Thank you for the Resources but does it work online like 000webhosting
@DavidGTech
@DavidGTech Год назад
Hi, yes it does work online
@wc2203-c6p
@wc2203-c6p Год назад
I did tried but unfortunately it doesnt work. I check my script and it definitely is correct. why do you think is that. does this still support 000webhosting or the latest php version?
@groceryshop733
@groceryshop733 2 года назад
thank you
@DavidGTech
@DavidGTech Год назад
You're welcome!!! Thanks for watching...
Далее
Import data from excel to mysql phpmyadmin
3:24
Просмотров 13 тыс.
Import Excel File Data into MySQL Database using PHP
15:27
Export MySQL data to Excel in PHP - PHP Tutorial
7:54
Просмотров 192 тыс.
Read any Excel File using PHPExcel in PHP
11:44
Просмотров 41 тыс.