Click to See Complete Forum and Search --> : need help with php syntax


pelegk1
12-17-2003, 05:49 AM
when i use this line in php i get an error in the browser how can i fix it?
echo "<tr id='$trID' name='$trID' class='tr".($level-1)."' style='cursor:hand' onClick='SendData('$div','$group_name')'>";
thnaks
peleg

pyro
12-17-2003, 10:16 AM
What error are you getting?

Aronya1
12-17-2003, 02:52 PM
Should he be using a double quote in front of the word STYLE, instead of a single quote?

pyro
12-17-2003, 04:49 PM
Yes, I would recommend doing so, but it shouldn't cause an error that I can tell.

pelegk1
12-18-2003, 12:59 AM
its in :
onClick='SendData('$div','$group_name')'
beacuse of the ' before send data and in the () too!!!

pyro
12-18-2003, 08:15 AM
Ah, I thought you were talking about a PHP error, not an error that you get when you run the output...

pelegk1
12-18-2003, 08:36 AM
but the problem is that it considers the php
beacuse from there i start the problem of the '
!!!