Dear all,
Can someone help please?
Next to other details I need to output a URL that consists of a fix web address and DB field content:
web address fix: www.domain-name/
DB-field retrieved: xxxxxx (field is named ‘slug’)
Html ending fix : .html
The clickable URL when constructed should look like this: www.domain-name/xxxxxx.html
I have all data available, but don’t know how to put these parts together, to output a clickable URL.
Furthermore: The fields currently printed are retrieved from one db row. I need to retrieve one more field from another db row and print it in the same row with the other fields.
Here is my current code:
[php]
Villa Name | Bedrooms | Bathrooms | Sleeps max. | Location | Site URL |
---|---|---|---|---|---|
".$info['ref_id'] . " | "; Print "".$info['bedrooms'] . " | "; Print "".$info['bathrooms'] . " | "; Print "".$info['max_occupants'] . " | "; Print "".$info['slug'] . " | ".$info2['location'] . " | "; // and here I need to print the constructed URL: www.domain-name/'slug'.html // Print "......... } Print " |
I would appreciate very much any help. Many thanks.