Connection issue
Posted: Fri Jan 27, 2012 8:19 am
For some reason when I try click on a file in my blog folder (I'm followinf your blog tutorial now) I get a HTTP Error 500. When I remove all the code within the PHP tags in init.inc.php it goes away and I can see like a test paragraph on the actual blog_list.php
Here is my PHP code in init.inc.php [syntax=php]<?php
mysql_connect('localhost', 'example_user', 'example_pass');
mysql_select_db('blog');
include('inc/posts.inc.php');
include('inc/comments.inc.php');
?>[/syntax]
Also I'm using MAMP on Mac OSX.
Here is my PHP code in init.inc.php [syntax=php]<?php
mysql_connect('localhost', 'example_user', 'example_pass');
mysql_select_db('blog');
include('inc/posts.inc.php');
include('inc/comments.inc.php');
?>[/syntax]
Also I'm using MAMP on Mac OSX.