Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Hyperspeed on June 26, 2004, 08:18:00 PM

Title: Amiga database with HTML output?
Post by: Hyperspeed on June 26, 2004, 08:18:00 PM
I'm looking for a database that can output it's cells into a HTML
website. What I mean by this for example is a HTML page that when a
link is clicked will access data from a field defined in the database.

It could be live via Apache or just converted to seperate HTML pages
for offline reading.

Like an eBay system I suppose.

Any such examples on Amiga?

:-|
Title: Re: Amiga database with HTML output?
Post by: MAD on June 26, 2004, 09:36:21 PM
Hoya!

I cannot help you but FYI, Final Data can produce ASCII files. Maybe they would be easier to convert to HTML?

Be funky

M A D
Title: Re: Amiga database with HTML output?
Post by: lorddef on June 26, 2004, 09:52:16 PM
You mean you want to create a database driven site?

Most people use a MySQL, MS JET or something like that in conjunction with PHP or ASP.

I use PHP and MySQL
Title: Re: Amiga database with HTML output?
Post by: Hyperspeed on June 26, 2004, 10:40:08 PM
I think what lorddef is suggesting would be more what I'm looking for.
Is MySQL available for Amiga though?

Amiga.org is an impressive site but I bet it's made on a PC. I'm not
looking for my HTML style database to be online though, I just thought
it would be nice to present my database data in HTML format (for ease
of browsing) and with nice big 24-bit pictures embedded within it.

I love the way you can sort the order of entries on eBay like you can
do with MUI menus.

:-)
Title: Re: Amiga database with HTML output?
Post by: Amiga1200PPC on June 26, 2004, 11:09:29 PM
There are mySQL ports available for AmigaOS and MorphOS.
Title: Re: Amiga database with HTML output?
Post by: ShadesOfGrey on June 27, 2004, 12:06:24 AM
@Hyperseed

To clarify, are your looking for a database (or other application) that can output your tables as HTML? Or are you looking for a database to generate dynamic web content (ala Apache, MySQL, PHP)?

Title: Re: Amiga database with HTML output?
Post by: Amiga1200PPC on June 27, 2004, 11:38:47 AM
I don't know, if there is a database, that outputs html.

If you want to do it the Amiga way, you can do the somethink like this:

- use a database with ARexx access
- a http server with cgi/ARexx support
- query the database and generate the html ouput with an ARexx program

et voila, that's it.


Instead of ARexx, you could also use a compiler language like c, pascal, modula etc. if you like.
Title: Re: Amiga database with HTML output?
Post by: Hyperspeed on June 27, 2004, 12:11:27 PM
Yes, I think I'll investigate mySQL.

What I wanted to try for example is have a database of car
specifications and then a HTML document that when you click "Engine"
would arrange all the cars in order of engine capacity.

Then a user could click "Colour" and they'd all sort in order of
colour or "Top Speed" etc.

Like when MUI sorts a list with that black triangle icon, but as a
link.

:-D
Title: Re: Amiga database with HTML output?
Post by: trochej on June 30, 2004, 08:18:32 PM
   You are looking for a database that has an API for one of languages used to create dynamic pages. PHP (http://www.php.net) and perl (http://www.perl.org) would we the most widely used, I think (don't know how with asp). You can also try for some kind of compiled language, like C/C++ (database need to have an API for it). PHP and perl are IMHO better for this purpose than compiled languages. You could also try java. As for a database, as suggested, you should try mySQL. I know it runs on many platforms and can communicate with many languages.

--
trochej
Title: Re: Amiga database with HTML output?
Post by: Hyperspeed on June 30, 2004, 08:53:38 PM
Thanks trochej,
   I'll investigate each one for Amiga!

One thing I wondered about eBay though - when you enter a HTTP you are
not accessing a list of files but a CGI script running as a program on
a PC.

So with any database linked HTML document it would need a machine
responding i.e no offline browsing unless say AWeb spoke directly to
the Amiga port of mySQL.

I suppose there is AREXX stuff for this but that's getting too complex
for my hobbyist intention, I've never understood how to program and
execute an AREXX script. Maybe I need a book!

:-) :-D
Title: Re: Amiga database with HTML output?
Post by: trochej on June 30, 2004, 10:29:25 PM
   Don't know about eBay, but usually it works that way:
 - database engine (lets say mySQL),
 - http server (lets say Apache).

   You use a bunch of scripts to send queries to database engine and fetch answers. There is no problem is including php in html (although you have to say Apache to parse every HTML in search for php code, which can be a performance hit). It's no problem to run all of this on a single computer.
    I don't know if I understood your worries, but such a site with dynamic content would need a connection to database, so yes, it should be online. :-)
    http://www.freewebmasterhelp.com/tutorials/php - You will find a php tutorial here. PHP/mySQL tutorial is linked somwhere there.

--
trochej
Title: Re: Amiga database with HTML output?
Post by: Hyperspeed on June 30, 2004, 10:44:32 PM
Wow, that looks excellent!

I didn't really want to go that advanced as I just wanted to build an
offline web-page that would display database fields as HTML frames.

But this looks fascinating.

Thanks, I might play with it sometimes. I might need one of those
books though!

:-D
Title: Re: Amiga database with HTML output?
Post by: trochej on June 30, 2004, 10:53:12 PM
    If you don't need to keep many records, you could try with a flatfile database. PHP has facilities to use those. You would then eliminate mySQL and simplified the learning.

--
trochej