Microsoft
Software
Hardware
Network
Question : insert variable in php
I have a code which insert excel file data to database.
but in this code, i have to give address of excel file like this:
// initialize reader object
$excel = new Spreadsheet_Excel_Reader()
;
// read spreadsheet data
$excel->read('Book1.xls');
its work right but
now i want to make it form method through which i can browse and insert variable.
i have tried this:
$excelfile = $_POST['filename'];
// initialize reader object
$excel = new Spreadsheet_Excel_Reader()
;
// read spreadsheet data
$excel->read('$excelfile')
;
but it shows error "The filename $excelfile is not readable"
Answer : insert variable in php
Remove quotes
// read spreadsheet data
$excel->read($excelfile
);
Random Solutions
Raid 1 Rebuild Failed - Adaptec 1210SA
Unable to assign a resource to meeting in Outlook 2010
Change Username on SBS2008
Exchange 2010. Install Failed, now can't uninstall
show crystal report on vb.net (database : Oracle)
Copy and Paste from cygwin xwin server guest machine to my pc notepad
Removing writeprotect from storagedevices
Excel Interop: Find cell by formula
Outlook not attack shortcut (lnk) attach directly the file
SAP books for implementing ERP package