0

I have something to know guys, is it possible to combine all the data in one fields and it will display separately?

Example:

I have 3 fields (id, description, link) and i store this in the ff. with a separator "|":

description fields

This is a description1 | This is a description2 | This is a description3 | This is a description4

link fields

Link1 | Link2 | Link3 | Link4

And it will display like this :

1. This is a description1
Link1

2. This is a description2
Link2

3. This is a description3
Link3

4. This is a description4
Link 4

Thanks in advance to your help guys.

Edited by rolyestemonio: n/a

3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by vibhaJ
0

use explode("string that delimite", "string to be removed") it will be like this

$descriptions = explode("|", $yourDescriptionVar);
echo $desciptions[0];
echo $desciptions[1];
echo $desciptions[2];
// and so on...

For more info, see this.

Edited by P0lT10n: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.