Received: from mail.nucleus.com (mail.nucleus.com [207.34.93.23]) by postgresql.org (Postfix) with ESMTP id B63124759AE for ; Thu, 28 Feb 2002 05:21:44 -0500 (EST) Received: from [192.168.1.100] (unverified [207.34.113.45]) by mail.nucleus.com (Vircom SMTPRS 1.1.219) with ESMTP id ; Thu, 28 Feb 2002 03:21:45 -0700 Subject: Re: link problem From: Zak Greant To: arun kv Cc: PGSQL In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 28 Feb 2002 03:22:39 -0700 Message-Id: <1014891759.13821.528.camel@linux> Mime-Version: 1.0 X-Archive-Number: 200202/60 X-Sequence-Number: 966 On Thu, 2002-02-28 at 00:02, arun kv wrote: > > > hello sir, > i have printed the contents of a database on a table using php. how > to give link from each content of cell to another page or file(like > pdf). table in php is been created using printf() statement and i am > unable to insert code to give link for whatever i print. > thanx in advance > Arun Hi Arun, You should review the printf and sprintf documentation. It is a bit daunting at first, but makes sense after a bit of work. To answser your question as best I can without seeing source code, here is one way to make a link using a printf statement $link = "http://www.php.net/"; $text = "PHP Website"; printf ('%s', $link, $text); Notice that the first %s is replaced with the value of $link, while the second %s is replaced with the value of $text. It looks like you are just getting started with PHP - you can find a lot of helpful resources at http://www.php.net/support.php Good Luck and happy PHPing! -- Zak Greant MySQL Advocate PHP Quality Assurance Team