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
explanation of httpcontext needed
Able to access the internet but unable to receive microsoft updates?
Apply gradient to cuved shape, like an 'S'
Where is the Default Printer set in Crystal Reports?
window 7 OS: blank (black) screen only, as it logs in
Internet Browser disabled - message is "Hyper Bar 1"
Exchange 2010 Antivirus Options
added a function to webservice. Why can't i see it by intellesense on the client
SNMP bandwdith monitor on Fortigate 200A
T SQL Query and Dates