Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'simpleurl'@'localhost' (using password: YES) in /home/chris/public_html/dacnomm.com/htdocs/simpleurl/class.mysql4.php on line 48

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/chris/public_html/dacnomm.com/htdocs/simpleurl/class.mysql4.php on line 118
ERROR!
There are no links in the database!


Author Note

This is a very rough example. There is no admin interface (although one wouldn't be difficult to create based on the code in these examples). That means everything must be added to the database manually. I also haven't bothered to include any HTML headers, making all this code instantly invalid (according to the W3C standards).

If you need some help with this, drop me an email at chris@doesnthaveone.com (yes, that's real!).

Page Source

Index (this) Page: index.phps
Link Page: link.phps
MySQL Table: table.sql
MySQL Class: class.mysql4.phps