Показать сообщение отдельно

  #9  
Старый 16.07.2009, 23:49
FireFenix
Постоянный
Регистрация: 03.06.2009
Сообщений: 385
Провел на форуме:
3178262

Репутация: 389
По умолчанию

ээх.... чтоли сюда скопировать весь мануал?
Код:
Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]]) 
Description
Prints a cell (rectangular area) with optional borders, background color and character string. The upper-left corner of the cell corresponds to the current position. The text can be aligned or centered. After the call, the current position moves to the right or to the next line. It is possible to put a link on the text. 
If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before outputting. 
Parameters
w
Cell width. If 0, the cell extends up to the right margin. 
h
Cell height. Default value: 0. 
txt
String to print. Default value: empty string. 
border
Indicates if borders must be drawn around the cell. The value can be either a number: 
0: no border
1: frame
or a string containing some or all of the following characters (in any order): 
L: left
T: top
R: right
B: bottom
Default value: 0. 
ln
Indicates where the current position should go after the call. Possible values are: 
0: to the right
1: to the beginning of the next line
2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0. 
align
Allows to center or align the text. Possible values are: 
L or empty string: left align (default value)
C: center
R: right align
fill
Indicates if the cell background must be painted (true) or transparent (false). Default value: false. 
link
URL or identifier returned by AddLink().
© http://www.fpdf.org/en/doc/index.php

В твоём коде получается что ты задаёшь параметр границы через запятую
Код:
$pdf->Cell(40,10,$bobo,$name);
Если ты хочешь вывести текст как продолжение существующего, то тебе нужно вместо запятой - использовать точку (конкатенация строк)
Код:
$pdf->Cell(40, 10, $bobo . $name);
Если тебе нужна отдельная строка - задавай ещё одну строку через Cell
Код:
$pdf->SetXY(50, 50);
$pdf->Cell(40, 10, $bobo);
$pdf->SetXY(50, 70);
$pdf->Cell(40, 10, $name);
И почитай на русском http://habrahabr.ru/blogs/php/31438/

Последний раз редактировалось FireFenix; 16.07.2009 в 23:52..
 
Ответить с цитированием