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
Cisco Catalyst 2950
Unable to RDP to SBS 2008 domain computers from other computers except the new server
Iseries OSV5R4 PM eserver iSeries telephone number
identical javascript code works in one website but not in another?
Backup of first storage group fails
iphone activesync push constant sync and battery drain problem
Edge Sync Fails
linux rpm
Spring ReloadableResourceBundleMe
ssageSourc
e Examples
jQuery or JS - Checkbox set/unset in an array?