Re: Conversion of Field Value to Hyperlink

From: Date: Thu, 29 Jul 2004 16:34:13 +0000
Subject: Re: Conversion of Field Value to Hyperlink
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-192205@lists.php.net to get a copy of this message
RTFM...? -- ----------------------------- Michael Mason Arras People www.arraspeople.co.uk ----------------------------- "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message news:C8F323573C030A448F3E5A2B6FE2070B0430C67C@nemesis... [snip] I have a table generated by some code that returns certain field values and drops them into a table. On of these values is ID and I'd like to convert it to a hyperlink that people can use to go to another page to view further information about a record. However: The fields are not individually identified as I use a for statement and I think I might need to redesign the table but don't know where to start. Can anyone provide any pointers please...? [/snip] RTFM. If I need a hyperlink I have to code it even in a loop....i.e. <?php while($remi = mysql_fetch_object($dbemi)){ print("<tr>\n"); print("<td>" . $remi->bellname . "</td>\n"); print("<td><a href=\"batch.crm.php?bn=" . $remi->niiname . "\">" . $remi->niiname . "</a> - click for batch report</td>\n"); print("<td align=\"right\">" . number_format($remi->bellcount, 0, '', ',') . "</td>\n"); print("<td align=\"right\">" . $remi->statdate . "</td>\n"); print("</tr>\n"); } ?>

« previous php.general (#192205) next »