thanks very much but being a newie I need a little more assistance, I copied and pasted the code you kindly sent but got an error message Warning: main(baaSelect.php) [function.main]: failed to open stream: No such file or directory in C:\Program Files\xampp\htdocs\delprod.php on line 32 Warning: main() [function.include]: Failed opening 'baaSelect.php' for inclusion (include_path='.;C:\Program Files\xampp\php\pear\') in C:\Program Files\xampp\htdocs\delprod.php on line 32 Fatal error: Class 'baaSelect' not found in C:\Program Files\xampp\htdocs\delprod.php on line 34 The actual code as it stands currently is: Could you please, please tell me where I am going wrong? <?php //prevents caching header("Expires: Sat, 01 Jan 2000 00:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: post-check=0, pre-check=0",false); session_cache_limiter(); session_start(); require('C:\Program Files\xampp\htdocs\config.php'); require('C:\Program Files\xampp\htdocs\functions.php'); //this is group name or username of the group or person that you wish to allow access to // - please be advise that the Administrators Groups has access to all pages. if (allow_access(Administrators) != "yes") { include ('C:\Program Files\xampp\htdocs\no_access.html'); exit; } ?> <? $dbuser = ''; // your database server user name $dbhost = 'localhost'; // name of the sql server $dbpass = ''; // your database server password $dbname = 'weld'; // the name of the database to connect to include 'baaSelect.php'; $sel = new baaSelect(); $sel->addSelect('manufacturer', 'man', 'manid', 'manname', '', 1, '- manufacturer -'); $sel->addSelect('product', 'prodname', 'prodno', 'proddesc', 'manno', 1, '- product -'); ?> <html> <head> <meta name="generator" content="PhpED Version 4.5 (Build 4513)"> <title>baaSelect Sample</title> <meta name="author" content="Barand"> <?php $sel->makeScript() ?> </head> <body> <form> <table> <tr> <td> Manufacturer </td> <td> <?php $sel->makeSelect('manufacturer'); ?> </td> </tr> <tr> <td> Product </td> <td> <?php $sel->makeSelect('product'); ?> </td> </tr> </table> <input type="submit" name="submit" value="Submit"> </form> ?> </body> </html>