<td bgcolor="<? echo $cellcolor; ?><a href="?x=admin&a=read&mess=<? echo $messid;?> class="link" onMouseover="showtip(this,event,'<?=$message_1?>')" onMouseout="hidetip()"><?=substr($message_2,0,25)?></a></td>
PHP Syntax
Moderator: General Moderators
PHP Syntax
I can't seem to get the following statement to work. Could someone see if anything is wrong with it and post some tips. Thanks...
<td bgcolor="<? echo $cellcolor; ?><a href="?x=admin&a=read&mess=<? echo $messid;?> class="link" onMouseover="showtip(this,event,'<?=$message_1?>')" onMouseout="hidetip()"><?=substr($message_2,0,25)?></a></td>
<td bgcolor="<? echo $cellcolor; ?><a href="?x=admin&a=read&mess=<? echo $messid;?> class="link" onMouseover="showtip(this,event,'<?=$message_1?>')" onMouseout="hidetip()"><?=substr($message_2,0,25)?></a></td>
what about it isn't working?
we need more details to help you...
also in your href it's always good practice to include the page to which you're sending the client...even if it's "self".
edit: after looking again, I see a potential problem.
you're not terminating your <td>
we need more details to help you...
also in your href it's always good practice to include the page to which you're sending the client...even if it's "self".
edit: after looking again, I see a potential problem.
you're not terminating your <td>
Last edited by Burrito on Sat Jul 09, 2005 5:08 pm, edited 1 time in total.
You need to put a semicolon after your echoes. Also, please read Posting Code in the forums.
viewtopic.php?t=21171
viewtopic.php?t=21171
Ok, I removed the echo and still not working. I'm trying to create a link with the message displaying.
<td bgcolor="<?=$cellcolor ?><a href="?x=admin&a=read&mess=<?=$messid?> class="link" onMouseover="showtip(this,event,'<?=$message_1?>')" onMouseout="hidetip()"><?=substr($message_2,0,25)?></a></td>
<td bgcolor="<?=$cellcolor ?><a href="?x=admin&a=read&mess=<?=$messid?> class="link" onMouseover="showtip(this,event,'<?=$message_1?>')" onMouseout="hidetip()"><?=substr($message_2,0,25)?></a></td>
but you didn't terminate the <td>...
you need:
instead of
mp;quote;>
instead of
<td bgcolor="<? echo $cellcolor; ?>">
instead of
you need:
Code: Select all
<td bgcolor="<? echo $cellcolor; ?>">Code: Select all
<td bgcolor="<? echo $cellcolor; ?>instead of
Code: Select all
<td bgcolor="<? echo $cellcolor; ?>instead of
Code: Select all
<td bgcolor="<? echo $cellcolor; ?>That is a programming preference...
Read the following:
http://www.dagbladet.no/development/php ... /#codetags
Read the following:
http://www.dagbladet.no/development/php ... /#codetags