Categories > TinyButStrong general >

A little help

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: M
Date: 2007-03-15
Time: 10:20

A little help

Hello everybody,
I got a question about merging a field, here is rthe code

PHP
$tbs->MergeBlock('rsnw',$conn,"SELECT wm12_DtPublDa as 'data',       wm12_TitSint as 'titolo', wm12_TextExt as 'articolo', wm12_URLlink as 'url'
                  FROM   wm12
                  WHERE  IDwm12=14");

HTML
<span align="justify">[rsnw.articolo]
                  <br><br><a href="[rsnw.url]" target="_blank">[rsnw.url]</a></span>

The problem is this: the recordset returns an url with a ; (semicolon) to separate more urls. I need to have as
<a href="[rsnw.url]" target="_blank">[rsnw.url]</a>
as the ; (semicolon) in order to have the right links for each url. It's about PHP or HTML side?
Thanks
By: TomH
Date: 2007-03-15
Time: 12:45

Re: A little help

The code you show does not yet define what the 'block' should be that will repeat. Like this maybe...
<span align="justify">[rsnw.articolo;block=span]
      <br><br><a href="[rsnw.url]" target="_blank">[rsnw.url]</a></span>

If your sql query is returning correct then maybe that helps.