Navigation
Last Seen Users
wepo01:02:14
samadi01:16:47
Mesue01:32:15
Agung Taufiq...01:44:09
max_og_mule02:10:42
Zombarxos03:04:55
Nighthawk-Inc03:18:56
fgjhxdf03:19:04
siwy199103:24:40
demis03:25:01

Members: 27,771
Newest: Mesue
Downloads v7
Downloads v6
One-click Translation
Translate This Site

Member Poll
Which version of PHP-Fusion are you using?

6.xx.xx
6.xx.xx
4% [20 Votes]

7.00.xx
7.00.xx
8% [39 Votes]

7.01.xx
7.01.xx
8% [42 Votes]

7.02.xx
7.02.xx
81% [417 Votes]

Votes: 518
You must login to vote.
Started: 26/03/2012 11:58

Polls Archive
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Connect via Facebook
Connect via Facebook
Our Coders
Shoutbox
You must login to post a message.

17-06-2013 04:03
info jadwal imsakiyah 2013 Thumb Up! semoga bermanfaat

16-06-2013 20:57

16-06-2013 20:56

16-06-2013 20:55

16-06-2013 20:55

16-06-2013 20:54

16-06-2013 05:39

16-06-2013 05:35

16-06-2013 05:25

16-06-2013 05:23

Shoutbox Archive
In memoriam

Nick Jones
1973-2011

Sponsors
View Thread
Who is here? 1 guest(s)
 Print Thread
Userpages doesn't read HTML from SQL
strike667
Hi. When I put this code
PHP
  1. <?php
  2. $result = dbquery(
  3.     "SELECT tip FROM fusion_tipyatriky"
  4. );
  5. if (dbrows($result)) {
  6.     while($zaznamy = dbarray($result)) {
  7.         $tipy = trimlink($zaznamy['tip'], 800);
  8. print "$tipy";
  9. echo "<br />";
  10.     }
  11. }
  12. ?>

into userpage, it works, as it should. But, if the key value in table contains HTML elements ( <a>, <br />, <strong> etc.), it doesn't print them as HTML, they just stay as they are (for example it's "click <a href='blabla'>here</a>" instead of "click here")
 
brainlag
hello mate,

as a workaround i suggest to use bbcodes and parse the sql result Smile
 
strike667
I can't use bbcodes, because I use these results not only in userpages and there are more HTML elements, than I can do with bbcodes.
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
http://spektrumdunia.blogspot.com/2013/05/margahayuland.html Introduction 1 11-06-2013 01:10
News.php image to read more Coding Support 2 31-12-2012 10:20
Replace "read more" with at PNG. Coding Support 5 11-06-2012 05:41
convert perl script to html with request box Coding Support 3 23-05-2012 01:01
Panels & Html? Coding Support 4 31-03-2012 00:47