Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 117,287 PHP Programmers for FREE! Ask your question and get quick answers from experts. There are 2,403 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Need To Realign Hyperlinks On Php Page

 
Closed TopicStart new topic

Need To Realign Hyperlinks On Php Page

HowdeeDoodee
post 22 Jul, 2008 - 01:07 PM
Post #1


D.I.C Head

**
Joined: 17 Jun, 2008
Posts: 64

I cannot get Next and Previous hyperlinks to line up properly at the right hand side of the page up next to the top of the page displayed.

Here is a code goint into part of the first record in the db showing how the hyperlinks are created.

QUOTE
INSERT INTO `recordname`.`tablename` (`PrevNextNum`,`Source`,`VerseRef`,`Text`,`Index`) VALUES ('1','ACL','Gen 1:1','<p align="right"><font face="Arial"><a href="http://www.findthepower.net/CP/CommentaryProject/PostNewABC2_PrevNext.php?ACL=ON&PrevNextNum=PrevNumberSequence"><PREVIOUS</a> <a href="http://www.findthepower.net/CP/CommentaryProject/PostNewABC2_PrevNext.php?ACL=ON&PrevNextNum=2">NEXT></a></font> <P CLASS="western" STYLE="margin-bottom: 0in"><FONT FACE="Arial", serif"><FONT SIZE=2 STYLE="font-size: 11pt"><B>God in the beginning created the heavens and the earth - </B></FONT></FONT><SPAN LANG="ar-SA"><FONT COLOR="#0000ff"><FONT FACE="TITUS Cyberbit Basic, serif"><FONT SIZE=2 STYLE="font-size: 11pt"><SPAN LANG="he-IL">בראשית ברא אלהים את השמים ואת הארץ</SPAN></FONT></FONT></FONT><FONT FACE="Arial", serif"><FONT SIZE=2 STYLE="font-size: 11pt"><SPAN LANG="he-IL"> </SPAN></FONT></FONT></SPAN><FONT FACE="TITUS Cyberbit Basic, serif"><FONT...other record content goes here.


This is the part of the php page that displays the db record content.

QUOTE
echo " <div align=\"center\">\n";
echo " <center>\n";
echo " <table border=\"0\" cellspacing=\"0\" width=\"98%\" cellpadding=\"0\" bgcolor=$colorbg bordercolorlight=\"#000000\">\n";
echo " <tr>\n";
echo " <td width=\"100%\"><font color=#FF0066 face=Arial size=2>Verse Reference</font><font face=Arial size=2 color=#000000>\n";
echo "</font><font face=\"Arial\" color=\"#000000\" size=\"2\">$VerseRef</font></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td width=\"100%\"><font color=#FF0066 face=Arial size=2>Text:</font><font face=Arial size=2 color=#000000>\n";
echo "</font><font face=\"Arial\" color=\"#000000\" size=\"2\">$Text</font></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td width=\"100%\"><font color=#FF0066 face=Arial size=2>Source:</font><font face=Arial size=2 color=#000000>\n";
echo "<font size=2>$Source</font></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </center>\n";


Currently the Previous and Next links appear too low on the page instead of lining up at the top of the page. The Previous and Next links line up properly along the right hand side of the page.

QUOTE
Verse Reference: Gen 1:1
Text:
.........................................................................................................................<PREVIOUS NEXT>

God in the beginning created the heavens and the earth - בראשית ברא אלהים את השמים ואת הארץ Bereshith bara Elohim eth hashshamayim veeth haarets; God in the beginning created the heavens and the earth.



This is how I want the Previous and Next links to line up.

QUOTE
Verse Reference: Gen 1:1.........................................................................<PREVIOUS NEXT>
Text:
God in the beginning created the heavens and the earth - בראשית ברא אלהים את השמים ואת הארץ Bereshith bara Elohim eth hashshamayim veeth haarets; God in the beginning created the heavens and the earth.


The periods in a line do not go on the page to be displayed. I had to use the periods in a line to give some idea as to what my issue is.

Thank you in advance for your time and replies.
User is offlineProfile CardPM

Go to the top of the page


HowdeeDoodee
post 23 Jul, 2008 - 09:44 AM
Post #2


D.I.C Head

**
Joined: 17 Jun, 2008
Posts: 64

I am going to close this thread but before I do I wanted to post how I resoved this issue. Briefly, I...

Added a field to the db containing the hyperlink data.
Called the hyperlink data from the php script.

QUOTE
$PrevNextNum="PrevNextNum";
$Source="Source";
$VerseRef="VerseRef";
$Text="Text";
$PNLinks = "PNLinks";
while(list($PrevNextNum, $Source, $VerseRef,$Text, $PNLinks)= mysql_fetch_row($result2)) {
if ($colorcounter == 0) {
$colorbg = "#d8e0f0";


Added this table on top of the existing table

QUOTE
echo " <div align=\"center\">\n";
echo " <center>\n";
echo " <table border=\"0\" cellspacing=\"1\" width=\"98%\" cellpadding=\"1\" bgcolor=$colorbg bordercolorlight=\"#000000\">\n";
echo " <tr>\n";
echo " <td width=\"100%\"><font color=#FF0066 face=Arial size=2></font><font face=Arial size=2 color=#000000>\n";
echo " $PNLinks\n";
echo "</font></td>\n";
echo " </table>\n";
echo " </center>\n";

User is offlineProfile CardPM

Go to the top of the page

Closed TopicStart new topic
Time is now: 10/6/08 11:00PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month