I am following the tutorials fom phpacademy, PHP Tutorials: Register & Login (Part 4): Database Connection
http://www.youtube.com/watch?v=0ol6C0ETQqM&list=ECE134D877783367C7&index=5
and I am getting this error even though I did it exactly like the guy in the video did:
Parse error: syntax error, unexpected 'require' (T_REQUIRE) in C:\wamp\www\LoginRegister\core\init.php on line 4
Here is my index.php
<?php
include 'core/init.php';
include 'includes/overall/header.php'; ?>
<h1>Home</h1>
<p>Just a template.</p>
<?php include 'includes/overall/footer.php'; ?>
Here is my init.php
<?php
session_start()
require 'database/connect.php';
?>
Here is my connect.php
<?php
mysql_connect("localhost","root","") or die("Couldn't connect");
mysql_select_db("lr") or die("Couldn't find db");
<?
I have another database setup on the same MySQL server, using a separate php login page from anothe tutorial and its working fine....its using the same mysql_connect string...
Any help would be appreciated.
A