Advanced Search

Results 1 to 3 of 3

Thread: MySQL virtual html links

  1. #1
    Join Date
    Jul 2006
    Posts
    139
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default MySQL virtual html links

    Hi all:

    I am trying to find a tutorial to create virtual links and present them as an individual web page. To make it more clear, suppose I have an event list (i.e news) which I save in a SQL database and I would like to click on any of those events (i.e.headline) that would pull the data from the DB and show it in an individual page with details. I have been googling but dont exactly know the method. Please direct me too the correct source.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,156
    Thanks
    262
    Thanked 690 Times in 678 Posts

    Default

    MySQL is just a database. You need a language like PHP to actually create an interface to get the data.

    The typical method for doing this is to use variables in the URL called "GET" variables.

    page.php?item=5

    Then $_GET['item'] will have a value of 5 in PHP and you can use that to search for record 5 in the database. To generate that type of link just find the relevant info in the database and use PHP to generate the href of an <a href="...." that corresponds to what you want to do.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. The Following User Says Thank You to djr33 For This Useful Post:

    neo_philiac (03-18-2010)

  4. #3
    Join Date
    Jul 2006
    Posts
    139
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Got it thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •