Hello I have this code bellow wich is a part of a script on my page. I wanted to edit the size of "First" And "Pevious" once they are displayed onto the site and tryed to add "<font size="4">" but then i get Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /public_html/side.php on line 93 How can i change the size of "First" And "Pevious" without the code breaking ?
echo '<a href="'.$_SERVER['PHP_SELF'].'?pagenum=1&tag='.$_GET['tag'].'" class="nextprev"><<-First</a>'; echo " "; $previous = $pagenum-1; echo '<a href="'.$_SERVER['PHP_SELF'].'?pagenum='.$previous.'&tag='.$_GET['tag'].'" class="nextprev"><- Previous</a>'; PHP: Next in the BODY part declare some CSS: <style type="text/css"> a.nextprev { font-family: arial, verdana, sans-serif; font-size: 20px; } </style> Code (markup): Two things: 1. I couldn't see any </a> to close the anchor. 2. If you're going to display < and/or > on the screen use < and > respectively.
I got what Yesideez said to work now but i need the same thing done for these 2 bellow and i keep breaking the code when i try to fix then like Yesideez did, can someone help please? echo "<a href='{$_SERVER['PHP_SELF']}?pagenum=$next&tag={$_GET['tag']}'>Next -></a>"; echo " "; echo "<a href='{$_SERVER['PHP_SELF']}?pagenum=$last&tag={$_GET['tag']}'>Last ->></a>"; PHP:
echo "<a href='{$_SERVER['PHP_SELF']}?pagenum=$next&tag={$_GET['tag']}' class='nextprev'>Next -></a>"; echo " "; echo "<a href='{$_SERVER['PHP_SELF']}?pagenum=$last&tag={$_GET['tag']}' class='nextprev'>Last ->></a>"; PHP: