You are here: Re: hyperlink from query result possible? « PHP SQL « IT news, forums, messages
Re: hyperlink from query result possible?

Posted by Anne Bos on 01/07/07 14:52

On Fri, 05 Jan 2007 15:20:35 +0100 wrote "J.O. Aho"
<user@example.net>:

>Anne Bos wrote:
>> On 5 Jan 2007 03:55:46 -0800 wrote "Captain Paralytic"
>> <paul_lautman@yahoo.com>:
>>
>>> Anne Bos wrote:
>>>
>>>> In a database about houses I want visitors to type in an address,
>>>> whereupon they get information about that address. In a lot of cases
>>>> the result is a table generated by a query.
>>>> Is there a way of constructing an hyperlink from the items in the
>>>> table, so that the reader is directed to more information about the
>>>> address he wants to know more about?
>>>> So, if the resulting table looks like
>>>> Item, address, building year
>>>> 1, Apple street 5, 1603
>>>> 2. Apple street 8, 1960,
>>>> 3. Berry road 105, 1750
>>>> etc.
>>>> and the visitor wants to know more about the house on Berry road, I
>>>> can direct him to a page completely devoted to that house.
>>>> Onno
>>> Yes, just construct the hyperlink in your php code.
>>
>> That php code is
>> {echo $row[$i];}
>> I hardly can imagine this works, but I'll try
>
>echo "<a href=\"index.php?id={$row[$i]}\">Click Here for more</a>";
>
>You will get the variable in index.php with $_GET['id']

Of course. Thank you.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация