#!\strawberry\perl\bin\perl.exe use DBI; print "Content-type: text/html\n\n"; print "\n" ; print "" ; print "$ENV{'SERVER_NAME'}: perl on the browser test\n" ; print "" ; print "\n" ; print "\n" ; print "\n" ; print "

This shows that perl is displaying on the website!

" ; print "

test

"; $proof = '

proof of the pudding

'; print "$proof"; $dbh = DBI->connect('dbi:mysql:aKDatabase','root','password') or die "Connection Error: $DBI::errstr\n"; $sql = "select cost, membertype from membershiptbl"; $sth = $dbh->prepare($sql); $sth->execute or die "SQL Error: $DBI::errstr\n"; print "

beginning database search \n

"; while (@row = $sth->fetchrow_array) { print "

@row

"; } print "above is your results \n"; THE ABOVE WORKS and displays a lovely table, which only took me a few days to get working :-D
The Aberystwyth University Shotokan Karate Club Logo

Costs

THE PLAN IS THAT A TABLE OF COSTS (WITH THE DATA COMING FROM THE SQL BACKEND GOES HERE!

Further Notes

Unfortently at the moment students from the Penweddig Class are unable to train at the University sessions. This is due to the age limits involved with the university and is currently out of our hands.

We often have special offers avaliable to new comers at the beginning and end of the year! Feel free to contact us for more information!