Jump to content

array problem


Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.