Hi,
I have a script which writes to a flat file and breaks it up like so:
[PHP]
<?php
$dblink="./data.db";
$moddb = file($dblink);
foreach($moddb as $data_line){
list($id, $catid, $image, $title, $desc) = explode('|', trim($data_line ));
?>
[/PHP]
The problem is that when i add this to the database it puts the description over separate lines so it classes one entry as about 5 different ones.
How can i get around this, is there something i can do when adding the description to the database or is there a different way to display.
Cheers,
Adam
I have a script which writes to a flat file and breaks it up like so:
[PHP]
<?php
$dblink="./data.db";
$moddb = file($dblink);
foreach($moddb as $data_line){
list($id, $catid, $image, $title, $desc) = explode('|', trim($data_line ));
?>
[/PHP]
The problem is that when i add this to the database it puts the description over separate lines so it classes one entry as about 5 different ones.
How can i get around this, is there something i can do when adding the description to the database or is there a different way to display.
Cheers,
Adam
Comment