[eluser]EEssam[/eluser]
Hi guys,
Can the following be written more nicely:
.....
if ($this->input->post('newline') == '\r\n')
{
$newline = "\r\n";
}
elseif ($this->input->post('newline') == '\t')
{
$newline = "\t";
}
else
{
$newline = $this->input->post('newline');
}
.....
echo $this->dbutil->csv_from_result($query, $delimiter, $newline);
Thanks.