Warning: Cannot modify header information - headers already sent by (output started at /home1/keyboard/public_html/Canberra Amatuer Productions/database.php:6) in /home1/keyboard/public_html/Canberra Amatuer Productions/index.php on line 20
PHP Code:
<?php
require "database.php";
$time = time();
$date = date("d/m/y");
$greg = time()+7200;
$time2 = date("h:i:s A", $greg);
$hour = time() + 3600;
if(isset($_COOKIE['bobsmename'])){
$cooksie = $_COOKIE['bobsmename'];
if ($cooksie != xgme1nlmn4_bobl00567dj){
setcookie(bobsmename, xgme1nlmn4_bobl00567dj, $hour);
}
}else{
$sql = mysql_query ("INSERT INTO ip (id,time,time2,date,ip)
VALUES ('0','".$time."','".$time2."','".$date."','" . $_SERVER['REMOTE_ADDR']."')");
setcookie(bobsmename, xgme1nlmn4_bobl00567dj, $hour);
}
?>
<html>
<head>
<META name="description" content="Canberra Amatuer Productions is a place to find auditions for amateur theatre preformances or you can hire people, props and costumes.">
</head>
<body>
<?php
if(isset($_COOKIE['ID_my_site']))
{
$username = $_COOKIE['ID_my_site'];
$pass = $_COOKIE['Key_my_site'];
$check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error());
while($info = mysql_fetch_array( $check ))
{
if ($pass != $info['password'])
{
}
else
{
$eval = loggedin;
//
}
}
}
else
{
$eval = loggedout;
}
?>
<?php
$check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error());
$info = mysql_fetch_array( $check );
if ( $eval == "loggedin" ){
include("link2.php");
}else{
include("links.php");
}
?>
<table class="outter" width="900" align="center">
<tr valign="top">
<td class="menu">
<table class="menu"><tr><td>
</td></tr></table>
</td>
<td width="500">
<table class="main" cellpadding="8" width="100%" >
<tr><td class="mainIn">
<center>
<p>
This site was created so that theatre groups, actors, backstage workers and anyone else interested in theatre in Canberra could get connected.
Here, actors will be able to find acting opportunities.
Theatre groups will be able to offer auditions, and also hire out props, sets and costumes from other productions.
They will also be able to find backstage help, giving backstage workers opportunities as well. </center>
</td></tr>
</table>
</td>
</body>
</html>
Any help?
Bookmarks