If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
-
D Oliveira
- AppGini Super Hero
- Posts: 347
- Joined: 2018-03-04 09:30
- Location: David
Post
by D Oliveira » 2019-09-16 06:49
how to turn this
Code: Select all
$day = '1';
$pdf->MultiCell(20,20,$treinocardio11['cal$day'],0,'C',false);
into this:
Code: Select all
$pdf->MultiCell(20,20,$treinocardio11['cal1'],0,'C',false);
any ideas?
-
jsetzer
- AppGini Super Hero
- Posts: 1807
- Joined: 2018-07-06 06:03
- Location: Kiel, Germany
-
Contact:
Post
by jsetzer » 2019-09-16 06:52
Try this:
$day = '1';
$pdf->MultiCell(20,20,$treinocardio11["cal{$day}"],0,'C',false);
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 24.10 Revision 1579 + all AppGini Helper tools
-
D Oliveira
- AppGini Super Hero
- Posts: 347
- Joined: 2018-03-04 09:30
- Location: David
Post
by D Oliveira » 2019-09-16 06:54
jsetzer wrote: ↑2019-09-16 06:52
Try this:
$day = '1';
$pdf->MultiCell(20,20,$treinocardio11["cal{$day}"],0,'C',false);
didnt work, i think this is illegal format
-
jsetzer
- AppGini Super Hero
- Posts: 1807
- Joined: 2018-07-06 06:03
- Location: Kiel, Germany
-
Contact:
Post
by jsetzer » 2019-09-16 06:56
Code: Select all
$day = '1';
$variable = $treinocardio11["cal{$day}"];
var_dump($variable);
exit;
$pdf->MultiCell(20,20,$variable ,0,'C',false);
can you post output please
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 24.10 Revision 1579 + all AppGini Helper tools
-
D Oliveira
- AppGini Super Hero
- Posts: 347
- Joined: 2018-03-04 09:30
- Location: David
Post
by D Oliveira » 2019-09-16 06:57
jsetzer wrote: ↑2019-09-16 06:56
Code: Select all
$day = '1';
$variable = $treinocardio11["cal{$day}"];
var_dump($variable);
exit;
$pdf->MultiCell(20,20,$variable ,0,'C',false);
can you post output please
oops, my code had a typo $day_, your solution worked perfectly, thank you and sorry for wrong feedback
-
jsetzer
- AppGini Super Hero
- Posts: 1807
- Joined: 2018-07-06 06:03
- Location: Kiel, Germany
-
Contact:
Post
by jsetzer » 2019-09-16 07:04
OK, great!
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 24.10 Revision 1579 + all AppGini Helper tools