Programming Resources
For Fun and Learning
Charles Cusack
Computer Science
Hope College
main

Python
C++

JAVA


PHP
SQL
Alice

DBExample1


Description

Run it
Download jar file (Right click)

DBExample1.java
DBExample1.java.old

Description
DBExample1 is a simple applet that demonstrates how to connect to a MySQL database and perform a single query in JAVA. In order to run the applet, two things are needed. First, you need a driver to connect between JAVA and MySQL. This can be obtained from SourceForge.net. Second, for security reasons, the applet needs to live on the same machine as the MySQL server. There may be ways around this, but it is more work than I care to deal with for now.