Forum Moderators: coopster
Here is my problem,
I have some text (came from a form) on a row on a mysql db. I can access it through dreamweaver (not much of a coder, i know :)), but it displays like the example below:
nome=Ricardo¦¦ morada=R. Tenente Valadim 119¦¦ codigopostal=4750¦¦ codigopostal2=000¦¦ localidade=Barcelos¦¦
Now, i would like to display it in a more orderly fashion, kinda like this:
Nome: Ricardo
Morada: R. Tenete Valadim 119
etc.
I've been trying to assign the info after the = to a variable so i can use it in the html layout, but with no success.
Can anyone help or point me to some guide that can?
Many thanks in advance to all.
Best regards,
Ricardo Peixoto
$arr = explode('=', $string_from_db);
echo 'Name: '.$arr[1];
#etc...