I wasn’t sure if I should start up a thread for something that already semi-exist…but my problem started after the solution I’ve found for another problem in this thread here. I altered the codes a bit so I can debug it better and that it comes out the way I want it to.
What’s happening is that everything works great, but each new entry has the word “content=” next to it.
Does anyone know how to get rid of that?
This the the code I used in the PHP file:
<?
...
//The connection stuff is there already
$query = "SELECT * FROM news ORDER BY id DESC";
$result = mysql_query($query);
while ($r = mysql_fetch_row($result))
{
$contents = "<b>". $r[1] . "
" . $r[3] . "</b>
"
. $r[2] . "
"; // add to the string
print "content=".$contents;
}
?>
And the following is what I put into one of the keyframes:
[AS]
news.html = true;
loadText = new loadVars();
loadText.load(“news.php”);
//creating the loadVarsText function
loadText.onLoad = function() {
news.htmlText = this.content;
};
[/AS]
The textbox is named news and the variable is content (just in case someone who wants to do something similar to this/has about the same trouble stumbles by ).
I can’t see any way to get this problem out, and just for visual sake, this is what comes out:
Thanks for any help you guys can provide
~Kamiko