Revision: 40383
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at February 1, 2011 04:05 by rstandley
                            
                            Initial Code
<?php
// This defines the constants for accessing the database
define('db_user','username');
define('db_password','password');
define('db_host','localhost');
define('db_name','database_name');
// Connect to MySQL
$dbc = @mysql_connect (db_host, db_user, db_password) OR die ('Could not connect to MySQL: ' . mysql_error() );
// Select the correct databse
mysql_select_db (db_name) OR die ('Could not select the database: ' . mysql_error() );
?>
                                Initial URL
Initial Description
Initial Title
PHP & MySQL Connect Script
Initial Tags
mysql, php, script
Initial Language
PHP