You tried this:
print("<a href="whateverpage.php">Link</a>");     <= Watch the " ... How
should print know where your output is terminating ?

Try either:
print "<a href=\"whateverpage.php\">Link</a>";  <- In here you can use
variables (like: $link) they will get parsed ...
Or:
print '<a href="whateverpage.php">Link</a>';    <- Note: In here you cannot
use variables ...

> -----Original Message-----
> From: Wilmar Pérez [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 15:48
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to