RE: [PHP] include!!!!!

From: Date: Wed, 23 May 2001 13:15:09 +0000
Subject: RE: [PHP] include!!!!!
Groups: php.general 
Request: Send a blank email to php-general+get-54039@lists.php.net to get a copy of this message
Hi Jamie, Include files also has to have php tags: <? $linkID = mysql_connect('localhost', 'root', 'not-telling-you'); mysql_select_db('foobar'); ?> Rudolf Visagie rudolf@qedi.co.za -----Original Message----- From: Jamie Thompson [mailto:jamie@tempoweb.com] Sent: 23 May 2001 03:18 To: php-general@lists.php.net Subject: [PHP] include!!!!! I'm new to php (having converted from the evil ASP) and i'm having some trouble with includes this is what i'm doing... <?php include("inc/db.inc.php") database stuff.... ?> db.inc.php is as follows: $linkID = mysql_connect('localhost', 'root', 'not-telling-you'); mysql_select_db('foobar'); All i get is the above outputted to the screen as html! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#54039) next »