
@Calvin is right, unless you are planning to expand your website (user membership, ordering system, etc.), then database connection is not needed. XML, JSON or a simpe TXT file should do. And indeed, there are no database connection in the script you have posted. From what I have seen your script is just displaying the result in a specific DIV element. If you want to save result in database or create a raw file, either you do it asynchronously (with some JS and AJAX call) or need to have a button or something to valid result and call a new page. On Fri, Dec 4, 2009 at 10:56 AM, aki <aki275@googlemail.com> wrote:
@Calvin,
I have a question for you. Why use a database? (Also, I dont see any declaration to accessing the Db connection or do things work differently in php world )
This was a decision I had to make in my learning process and am now working with XML which can also store organized portable data creating a lite system. You can also use the data later to work on different systems.
Me hobbyist thots.. :-)
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general