RE: [PHP] help needed

From: Date: Fri, 24 Aug 2001 12:36:40 +0000
Subject: RE: [PHP] help needed
Groups: php.general 
Request: Send a blank email to php-general+get-64230@lists.php.net to get a copy of this message
checkout http://www.weberdev.com there are several scripts ready made for this. Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -----Original Message----- From: steven@raucher.com [mailto:steven@raucher.com] Sent: Friday, August 24, 2001 11:39 AM To: php-general@lists.php.net Subject: [PHP] help needed PLEASE REPLY DIRECTLY TO THIS EMAIL ADDRESS, I AM NOT SUBSCRIBED TO THE LIST hi there I am trying to insert this code into my pages to dynamically add backwards and forwards links to my pages but the code keeps giving me errors. below is the code, if someone could please tell me what I am doing wrong I would really apprectiate it. thanks steve <? //list previous if found using desc results array echo "<p align='center'>"; $sql= "select id from travel where id < '$id' and visible = 'checked' order by id desc"; $result = mysql_query($sql) or die("Invalid Query"); $row = mysql_fetch_array($result) if ($row[article] != "") { echo " &laquo; <a href='viewlog.php?id="; echo $row[id], "'>"; echo Previous; echo "</a> &raquo;"; echo "</font></font></p>\n"; } else { echo <a href='travelog/"<FONT COLOR="#666699"><b><u>Home</u></b></a> } ?> echo " | " <? //list NEXT if possible using ascending results array $sql = "select id from travel where id > '$id' and visible = 'checked' order by id asc"; $result = mysql_query($sql) or die("Invalid Query"); $row = mysql_fetch_array($result) if ($row[article] != "") { echo " &laquo; <a href='viewlog.php?id="; echo $row[id], "'>"; echo Next; echo "</a> &raquo;"; echo "</font></font></p>\n"; } else { echo <a href='travelog/"<FONT COLOR="#666699"><b><u>Home</u></b></a> } ?> echo "</p>"; ***************************************************** CURRENTLY IN THAILAND Steven Raucher The Karma Tourer www.RaucherTour.com mailto:steven@raucher.com yahoo messenger: stevenraucher *****************************************************

« previous php.general (#64230) next »