Hello everyone, I am currently building a free website for a junior sports club. The main feature of this is the online registration which I’ve decided to use Breezing Forms. When customizing the export_pdf.php file which fetches the fields from the database and arranges it in a table I noticed a problem with my code, when I attempt to separate the rows individually no data is fetched.
The original code (that works but the data cannot be styled individually):
[php]<?php
$subs = $this->getSubrecords($rec->id);
$subsSize = count($subs);
for($s = 0; $s < $subsSize; $s++) {
$sub = $subs[$s];
?>
And this is the code I am attempting to use:
[php]<?php
$name = ‘’;
$email = ‘’;
$subs = $this->getSubrecords($rec->id);
$subsSize = count($subs);
for($s = 0; $s < $subsSize; $s++) {
$sub = $subs[$s];
switch($sub->name){
case ‘name’:
$name = nl2br(htmlentities(substr($sub->value,0,10000), ENT_QUOTES, ‘UTF-8’));
break;
case ‘email’:
$email = nl2br(htmlentities(substr($sub->value,0,10000), ENT_QUOTES, ‘UTF-8’));
break;
}
}
?>
Any help is sincerely appreciated it is for a great cause so please help. Thank you!