PDA

View Full Version : Undoing [URL] [/URL]


pagedown
11-10-2007, 06:23 PM
Hi,

I've read some data from the database using

$threadarray = $vbulletin->db->query_read("SELECT thread.* etc etc );

and now I want to print it out to the screen

while($thread = $vbulletin->db->fetch_array($threadarray))
{
echo "{$thread['title']} <br />";
echo "{$thread['pagetext']} <br />";
}

trouble is its coming out like

Here is a list of Beatles related websites.
[ URL ]http://www.thebeatles.com/[ /URL ] [ URL ]http://www.johnlennon.com/[ /URL ]

How do I turn the [ URL ] and [ /URL ]s back into HTML

Thanks

Mike

Analogpoint
11-10-2007, 06:30 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=149872" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=149872</a>

pagedown
11-10-2007, 06:32 PM
haven't tried it yet but it looks like just what I need.

Thanks a lot. :)

Mike

Analogpoint
11-10-2007, 06:43 PM
No problem :)