robert_gsfame Posted May 8, 2010 Share Posted May 8, 2010 I have this code while($myarray=mysql_fetch_array($myquery)){ $subject=$myarray['subject']; $message=nl2br(htmlentities($myarray['message'])); echo "<tr style='cursor:default' onmouseover=hovie($x,$totalrows) onmouseout=mouseout($x,$totalrows) id=user$x><td width=63><input type=checkbox></td><td width=484 class='style6 style5'><span onclick=boldtext($x,$totalrows,$message) id=boldtext$x style='cursor:pointer'>$subject</span></td></tr>"; then problem is with the bold one, as i always get this ) id=boldtext$x style='cursor:pointer'>$subject shown up although i just want to show the $subject and pass the value of $message to the javascript function I think some quotes might be missing, but i cant find which one Thx Link to comment https://forums.phpfreaks.com/topic/201074-array-problem/ Share on other sites More sharing options...
robert_gsfame Posted May 8, 2010 Author Share Posted May 8, 2010 Solved!! i always forgot to urlencode the text! Link to comment https://forums.phpfreaks.com/topic/201074-array-problem/#findComment-1054927 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.