Confused as to why my PHP include isn't working
        Posted  
        
            by 
                Sam
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Sam
        
        
        
        Published on 2011-11-14T01:36:34Z
        Indexed on 
            2011/11/14
            1:51 UTC
        
        
        Read the original article
        Hit count: 224
        
I had a prototype of my website working correctly, meaning it connected to the database correctly. This was done with just one file called "connect.php" which had mysql_connect() and such inside it. I then separated the connect information into to separate files, one containing the account information (account.php) and one containing the connect function (connect.php), with correct information (I triple checked) and it isn't connecting properly. All I can think of is that I'm not including it the right way. This is what I have in a file:
<?php
include('account.php');       
include('connect.php');
include('functions.php');
.....
?>
© Stack Overflow or respective owner