while($i <= $count)
{
$final = mysql_fetch_row($result);
$blocknamelist .= "<a style = \"cursor: pointer\" onmouseout =
\"clear_desc()\" ";
$blocknamelist .= "onclick = delete_block(\"$final[1]\",\"$final[2]\")
onmouseover = display_desc(\"$final[2]\") >";
$blocknamelist .= "<font color = \"red\">X</font></a> <br />\n";
$i++;
}
This is the output:
<a style =" cursor: pointer" onmouseout =" clear_desc()" onclick =
delete_block("QL","Quick Links) onmouseover = display_desc("Quick
Links) ><font color =" red">X</font></a> <br />
<a style =" cursor: pointer" onmouseout =" clear_desc()" onclick =
delete_block("AD","Admin Menu) onmouseover = display_desc("Admin Menu)
<font color =" red">X</font></a> <br />
As you can see, around Quick Links the quote sequence never shows up
as well as around Admin Menu. I can't figure this out. I have tried
these sequences:
'text "' . $variable . '" more text';
"text \"". $variable . "\" more text";
<<<EOD Text "$variable" more text EOD;
Among as many other patterns I could think of.
What I don't understand is. If I do this:
$test = '"' . $variable . '"';
it works exactly how I want it to act, as well as the same with every
above pattern I have tried. it is only when I try and get it to print
in the above manner within the javascript function calls that I get a
problem. Do the parenthesis in the string effect it some how? I've
never seen it do this before, so I am bamboozled. Any and all help is
appreciated.