Posted by Kim Andrι Akerψ on 11/27/06 13:49
J.O. Aho wrote:
> Gaga wrote:
> > echo "<a href='user_edit.php?id={$row_dbUsers['id']}'>edit</a>";
> > If i want to add color or other effect to this link i get all the
> > time parse error.
> > I have tryed with normal font color, size, mouseover but all the
> > time... parse error.
> >
> >
>
> echo "<a href=\"user_edit.php?id={$row_dbUsers['id']}\"
> style=\"color: green; font-size: larger;\"
> mouseover=\"javascript_function(); return true;\">edit</a>"
>
> or
>
> echo <<<EOF
> <a href="user_edit.php?id=
> EOF;
> echo $row_dbUsers['id'];
> echo <<<EOF
> " style="color: green; font-size: larger;"
> mouseover="javascript_function(); return true;">edit</a> EOF;
You could also present the second version like this:
echo <<<EOF
<a href="user_edit.php?id=${row_dbUsers['id']}" style="color: green;
font-size: larger;" mouseover="javascript_function(); return
true;">edit</a>
EOF;
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
[Back to original message]
|