Connection to excel
Posted: Sat Sep 18, 2004 1:04 am
feyd | Please use
Why doesn't these codes work? I took these codes from a book. I didn't understand what the DB.php is. The book says u can download it from internet. But I don't know how to find it.
I want to write some datas from database to excel. How can I do this.
feyd | Please use
Code: Select all
tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]Code: Select all
<?php
require("DB.php");
$excel_baglantisi = new COM("excel.application");
$excel_baglantisi->Visible = false;
$CalismaKitabi = $excel_baglantisi->workbooks->add();
$CalismaKitabi->Cells(1,1)->value = "name";
$CalismaKitabi->Cells(1,2)->value = "price";
$CalismaKitabi->Cells(1,3)->value = "time";
$CalismaKitabi->SaveAs("cal_raporlari-$ucret.xls");
$excel_baglantisi->quit();
?>I want to write some datas from database to excel. How can I do this.
feyd | Please use
Code: Select all
tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]