Welcome visitor
* Login
* Register
It is currently September 20th, 2019, 9:33 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  See More
PostPosted: November 3rd, 2009, 8:34 pm 

Posts: 21
Hi ppl,

I have this question which is kind of confusing me right now. I have a table with many items on it and a brief description of each. I would like to create a link to "See More" of the desired option, which will open a new window with more pictures and text about each item.

Does anyone has a clue of what I need Or how to go around such thing? Thank you.


Top
 Profile  
 
  Re: See More
PostPosted: November 4th, 2009, 2:55 am 
User avatar

Posts: 61
You can try using a PHP code and a database. With PHP you will be able to create an special link for each item with a single line of code:
echo '<a href="specificpage.php?id='.$id.'">See More About This Item</a>';

The linked result will be different as the id value changes.


And you dont need to create a different page for each product, just one that will use the linked id. This would be the code for such a file:
<?php
extract($_GET);
$dbTable=mysql_query("SELECT * FROM databaseName WHERE ID='$id'");
$rowWithProductInfo=mysql_fetch_array($dbTable);
extract($rowWithProductInfo);
echo $ID;
echo $NAME;
echo $FULL_DESCRIPTION;
?>

This is an example of using PHP with a MySQL database. HTH.


Top
 Profile  
 
  Re: See More
PostPosted: November 4th, 2009, 3:25 am 

Posts: 21
Thank you Bob, that's perfect. The only problem is that I'm not that perfect and I don't even know what PHP is. If you know an easier way, not so sofisticated, I will appreciate it. But I really thank you, though.


Top
 Profile  
 
  Re: See More
PostPosted: November 4th, 2009, 8:34 pm 

Posts: 65
The easiest way I can think of is to create a page with all your items and their 'See More' details. Now, before each item add this tag:
<a name="item1"></a>

and change the name or number of the item. And on your table put a link to that file and that section:
<a href="completeDetails.html#item1">See More of This Item</a>




http://www.scriptingok.com/tutorial/HTML-links-3


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron