I'm trying to create a login code. I'm using the PEAR to connect to mysql. So, I link to the single database connection page on all many other pages with the require function. However, for some reason I can't figure out, after the require function no code processes. I do not recieve an error message. The code before the require function processes. I haven't a clue what's wrong? Here is the connection page (db_connect.php): [code]<?php //require the PEAR::DB classes. require_once 'DB.php'; $db_engine = 'mysql'; $db_user = 'root'; $db_pass = 'xxxxxx'; $db_host = 'localhost'; $db_name = 'my_db'; $datasource = $db_engine.'://'. $db_user.':'. $db_pass.'@'. $db_host.'/'. $db_name; $db_object = DB::connect($datasource, TRUE); /* assign database object in $db_object, if the connection fails $db_object will contain the error message. */ // If $db_object contains an error: // error and exit. if(DB::isError($db_object)) { die($db_object->getMessage()); } $db_object->setFetchMode(DB_FETCHMODE_ASSOC); include('check_login.php'); ?> [/code] Here is the first portion of one of my other pages: [code]<?php echo first; require('db_connect.php'); echo second;[/code] In this the word 'first' would be executed, but the word 'second' would not. No error message. This happens on all my pages that have the require function. Any advice would be appreciated. Thank you.