Hey,
Im fairly new to php and sessions etc. Im trying to create a site with sessions. ive read a few tutorials and used a template but i have errors on line 21 and 33. can anyone elaborate on how i shud fix this? im guessing it simple.
[code=php]<?php
//require the PEAR::DB classes.
require_once ‘Connections/TheBuzzo.php’;
$db_engine = ‘mysqls’;
$db_user = ‘[Removed by Moderator]’;
$db_pass = ‘[Removed by Moderator]’;
$db_host = ‘mysql2.streamline.net’;
$db_name = ‘TheBuzzo’;
$datasource = $db_engine.’://’.
$db_user.’:’.
$db_pass.’@’.
$db_host.’/’.
$db_name;
$db_object = TheBuzzo/Tables/users/connect($datasource, TRUE);
/* assign database object in $db_object,
if the connection fails $db_object will contain
the error message. */
// If $db_object contains an error:
// error and exit.
if(TheBuzzo::isError($db_object)) {
die($db_object->getMessage());
}
$db_object->setFetchMode(DB_FETCHMODE_ASSOC);
// we write this later on, ignore for now.
include(‘check_login.php’);
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″ />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>