Results 1 to 3 of 3

Thread: load data from mysql and write html ?

  1. #1
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question load data from mysql and write html ?

    Is there a simple script that loads a name and a link from a database and writes that automatically into a html site ?

    The output html site should be just a simple html site, with a name .. and the name should have a hyperlink to that specific url.

    thank you so much for any little help !

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 517 Times in 503 Posts
    Blog Entries
    5

    Default

    Something like this is not complicated, but the implementation will depend on your specific needs. Do you have an existing database? If so, can you describe its structure?

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,335
    Thanks
    30
    Thanked 137 Times in 132 Posts
    Blog Entries
    32

    Default

    If you just want a name and a url to be written onto the html site (let's call it 'main.html'), and if you decide to store the data in another html site (let's call it 'data.html'), and if you use built-in code (no javascript of your own) then you could simply do:

    main.html:
    Code:
    <body>
    <iframe src="data.html" style="position: absolute; top: -10000px"></iframe>
    <div id="data_receiver"></div>
    </body>
    data.html:
    Code:
    <body onload="parent.document.getElementById('data_receiver').innerHTML=document.getElementById('the_data').innerHTML">
    <div id="the_data">
    <a href="javascript: void(0)" onclick="window.open('http://www.dynamicdrive.com'); return false">DD</a>
    </div>
    </body>

Similar Threads

  1. Replies: 7
    Last Post: 07-16-2009, 09:28 AM
  2. How to populate php/html form with MySQL data
    By peterv in forum MySQL and other databases
    Replies: 1
    Last Post: 06-13-2009, 09:18 PM
  3. From an html form in https:// url save the credit card data in a mysql database table
    By leonidassavvides in forum MySQL and other databases
    Replies: 4
    Last Post: 05-26-2009, 02:15 AM
  4. MySQL LIKE, small problem with returned html data
    By jamiller in forum MySQL and other databases
    Replies: 2
    Last Post: 03-26-2008, 12:51 PM
  5. Replies: 1
    Last Post: 06-04-2006, 06:57 PM

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
  •