RE: [PHP-DB] A newbie question
| From: | Brunner, Daniel | Date: | Wed, 15 Aug 2001 15:06:55 +0000 |
| Subject: | RE: [PHP-DB] A newbie question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-11381@lists.php.net to get a copy of this message | ||
Hello!!
Here use ECHO instead.....
echo ("<a
href=list.php?Art_Number=$data->Art_Job&HOSTNAME=$HOSTNAME&DATABASE=$DAT
ABASE$table=$table>$data->Art_Number</a>");
Notice $data->Art_job...
$data is coming from mysql_fetch_object($result);
That way you click on the actual Field result......Or in this case The
Art Number...
And the ? and & are added varibles to the link....which is passed to the
next page....Which then can be used for whatever you want...
Dan
> ----------
> From: Wilmar Pérez
> Sent: Wednesday, August 15, 2001 8:47 AM
> To: PHP List
> Subject: [PHP-DB] A newbie question
>
> Hi guys
>
> This may sound a bit silly but don't know how to do it. I've got the
> following print statements, I would like them to be links, how do I do
> that?
>
> print("<li>Comunicaciones</li><br>");
> print("<li>Invidentes</li><br>");
> print("<li>Circulación</li><br>");
> print("<li>Referencia</li><br>");
> print("<li>Hemerotecas</li><br>");
> print("<li>Centro Referencial</li><br>");
> print("<li>Patrimonio Cultural</li><br>");
> print("<li>Capacitación</li><br>");
> print("<li>Procesos Técnicos</li><br>");
>
> Thanks a lot
>
> Pd: The <a href="whateverpage.php">Link</a> gives me an error on
> loading
> the page
>
> -----------------------------------------------
> Wilmar Pérez
> IT Manager - Central Library
> University of Antioquia
> Medellín - Colombia
> tel: ++57(4)2105145
> -----------------------------------------------
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>