473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Hyperlink Properties

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=" . $_SERVER['PHP_SELF'] . "?start=" . ($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=" . $_SERVER['PHP_SELF'] . "?start=" . ($start-
$records_per_page) . " style="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...

Anyone???

Alec
Dec 5 '07 #1
1 1499
On Wed, 05 Dec 2007 06:33:16 +0100, <sa***@freeweekends.co.ukwrote:
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=" . $_SERVER['PHP_SELF'] . "?start=" . ($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=" . $_SERVER['PHP_SELF'] . "?start=" . ($start-
$records_per_page) . " style="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 immediately..

echo '<a href="'. $_SERVER['PHP_SELF'] . '?start=' . ($start-
$records_per_page) . '" style="font-family: Arial;font-size: 10pt;color:
#0000FF">Previous Page</a>';
--
Rik Wasmus
Dec 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: clintonG | last post by:
Any folklore regarding the benefits of using one or the other of these controls? <%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT...
5
by: JerryK | last post by:
Hi, I am trying to put a hyperlink to a .cer (certificate) file on a form. Normally (on a ,htm page) when the user clicks on the hyperlink, the file is not recognized and the user is given the...
1
by: tshad | last post by:
Is there some reason why the Hyperlink in a DataGrid will not show an image? I have a datagrid with the following: <asp:TemplateColumn visible="false" HeaderText="Skills"> <itemtemplate>...
0
by: Tim::.. | last post by:
Can someone please tell me how I create a hyperlink column in a datatable... I have the following Sub that creates a datatable from my Active Directory but I would like to be able to turn the...
1
by: Saxman | last post by:
I have a textbox on a form which has hyperlink as the data type. The default format for a hyperlink is a file or web link. Is it possible change the default to an email address for all records...
9
by: dana lees | last post by:
Hello, I am using asp:HyperLink in a c# asp.net application to open a new window in the following way: <asp:HyperLink ID="lnkSiteName" runat="server" Text='<%# DataBinder.Eval(Container,...
2
by: Andy | last post by:
Hi, This is one of those things I thought should e easy... I'm programatically trying to set the navigateURL property in a hyperlink in the headertemplate of a repeater, but always get the...
3
by: William LaMartin | last post by:
I have a gridview (with no properties set) on an aspx page which I populate from an XML file with the code below. The data in the XML file looks like this <description>National Trust for...
3
by: Nathan Sokalski | last post by:
I am using the ImageUrl property of the HyperLink control. My image is large, so I am setting the width/height attributes, but when it renders the width/height attributes are in the <atag rather...
5
by: Silgd1 | last post by:
Hey All.... I am creating web page using Netbeans 6.0. I use A jspf (java server page fragment) that is included in most of the other pages. There are several hyperlinks on the jspf that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.