You are here: Re: Hyperlink Properties « PHP Programming Language « IT news, forums, messages
Re: Hyperlink Properties

Posted by Rik Wasmus on 12/05/07 05:42

On Wed, 05 Dec 2007 06:33:16 +0100, <sales@freeweekends.co.uk> wrote:

> Sorry, a real simple question and maybe one not for this group.
>
> Have just tried a php pagination tutorial which works fine. The line
> that produces the "Previous" hyperlink is as below and this works
> fine. But...
>
> echo "<a href=3D" . $_SERVER['PHP_SELF'] . "?start=3D" . ($start-
> $records_per_page) . ">Previous Page</a>";
>
> When I try to change the hyperlink properties in the html code to
> effect the font style, size and colour as below...
>
> echo "<a href=3D" . $_SERVER['PHP_SELF'] . "?start=3D" . ($start-
> $records_per_page) . " style=3D"font-family: Arial; font-size: 10pt;
> color: #0000FF">Previous Page</a>";
>
> I get the following error message.
>
> Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
>
> I have looked at the normal format of a hyperlink and cannot see what
> is wrong...

Get an editor with descent syntax-highlighting, you'd spot it immediatel=
y..

echo '<a href=3D"'. $_SERVER['PHP_SELF'] . '?start=3D' . ($start- =

$records_per_page) . '" style=3D"font-family: Arial;font-size: 10pt;colo=
r: =

#0000FF">Previous Page</a>';
-- =

Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация