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
Can't access Exchange 2003 OWA from Internet
Visual Studio2008 integrated Windows Installer
Zebra LP 2844 label printer prints the first print job successfully, subsequent print jobs after skip labels and/or print partial data on labels until computer is rebooted.
Sharepoint 2010 - Manage Content & Structure ...Where is it?
Remote Web Workplace different website address
stop error oxoooooo7b(OxF78D2524,OxC0
000034 will not load XP setup!!!!!!!
Ubuntu default chat client logs
How can I create a signature capture in iPhone SDK?
Cisco 870 Series, Site-to-Site VPN only allowing traffic one way.
EtherChannel on Cisco 2960 switch intermittent dropped packet