Print from MySQL to PHP issue -
Print from MySQL to PHP issue -
when i'm echoing big paragraph or text in php there's big space on first line.
is there way prepare that? don't have space or , when check in database fine.
<pre> <?php if ($rows['section'] == "text"){ echo ($rows['code']); }else{ ?> <code class="<?php echo($rows['section']); ?>" id="copycode"> <?php echo $rows['code'] ?> </code> <?php } ?> </pre>
try replacing
<code class="<?php echo($rows['section']); ?>" id="copycode"> <?php echo $rows['code'] ?> </code>
with
<code class="<?php echo($rows['section']); ?>" id="copycode"><?php echo $rows['code'] ?></code>
from can see on website, there breakline , spacing before code outputted
https://www.dropbox.com/s/78lspdqpopsqb2g/screenshot%202014-10-17%2000.57.08.png?dl=0
php mysql
Comments
Post a Comment