- function BuildTable($data)
-
{ //int WordWrap($row, 15)
-
-
if(isset($_REQUEST['ByPart']))
-
{
-
$w=array(30,30,40,30,20,20);//column heading size
-
}
-
elseif(isset($_REQUEST['CCred']))
-
{
-
$w=array(35,60,20,30,25,23);//column heading size
-
}
-
elseif(isset($_REQUEST['AcctRep']))
-
{
-
$w=array(40,60,35,30,20);//column heading size
-
}
-
else
-
{
-
$w=array(40,50,30,30);//column
-
}
-
//Color and font restoration
-
$this->SetFillColor(200,224,200); // column colour alternate
-
$this->SetTextColor(0);
-
$this->SetFont('');
-
//now spool out the data from the $data array
-
$fill=true; // used to alternate row color backgrounds
-
-
foreach($data as $row)
-
{
-
-
$this->SetTextColor(0);
-
$this->SetFont('Times','',7);
-
for($j=0;$j<count($row);$j++)
-
$this->Cell($w[$j],5,$row[$j],'LR',0,'C',$fill);
-
$this->Ln();
-
$fill =! $fill;
-
}
-
$this->Cell(array_sum($w),0,'','T');
-
}
I want to wrap the data from mysql but its no use can anyone helo me?
0 1021 Sign in to post your reply or Sign up for a free account.
Similar topics
by: ASzasz |
last post by:
I am new to VB .NET: I can configure a SQL adapter and access data via the
datagrid. But how do you access and manipulate data if you do not require the
data to show up on a form. I simply want to...
|
by: asadikhan |
last post by:
Hi,
I am trying to use a datalist to edit data in a MySql database as
follows. For now I just want to be able to get the changes to be made
on the dataset. Here is my code:
using System;...
|
by: BillE |
last post by:
What is the best way to add data using a DataGridView in a multi-tier
application (data entry is handled in a data access layer using stored
procedures)?
Thanks
Bill
|
by: STEPHENSS |
last post by:
Hi,
I have a crystal report that has many subreports over many pages and Iam getting the following error
Unable to save data with report, the save data is incomplete generate the saved data Yes...
|
by: shwethatj |
last post by:
Can anyone please help me.....
In Crystal Reports , how to access data using PULL method ..
I have got a table in server explorer which has 3 got fields. But i dont know how to access it and...
|
by: amollokhande1 |
last post by:
Hi All,
I am using Sql server 2005 as a backend for my application. I want to read/write the unicode data using sql query.
When I am using
insert into UnicodeData values('سي') command and...
|
by: blackirish |
last post by:
Hi all,
i am trying to write a program which takes a regular expression and generate data according to that expression. I know it's possible because there are such programs to manage this task. Do...
|
by: gouse |
last post by:
Hi All,
I am using libpq 'C' interface to connect to the PostgreSQL database. The encoding of Database is UTF8 and it also contains a table with UNICODE data. By using PQconnectdb() I have made a...
|
by: milan12 |
last post by:
Hello Everyone,
I am doing a project where i need to develop a C# windows application. I need to receive data in my laptop (windows 7) using BLED 112 Dongle from NRF 8001 which is Bluetooth Low...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |