non cambia niente
Codice PHP:
//comocommunity.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<? ob_start(); ?>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Stile1 {
color: #FF6633;
font-weight: bold;
}
-->
</style>
</head>
<body>
<table width="970" height="465" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#0000FF">
<td height="68" colspan="4"><div align="center">
<h1 class="Stile1">Como Community Messenger</h1>
</div></td>
</tr>
<tr>
<td height="21" colspan="4"><?
include "auth.inc";
ob_end_flush()
?>
</td>
</tr>
<tr>
<td height="36">Nome Utente</td>
<td width="146" rowspan="2">
<form action=log_do.php method=post enctype="multipart/form-data">
<input type="text" name=nickname>
<input type="password" name=password>
</p>
<input type="submit" name="Submit" value="Log in">
</p>
</form></td>
<td width="481" rowspan="2"></td>
<td width="254" rowspan="2" bgcolor="#99FF66">
<?php
include("cfgconn.php");
$db = mysql_connect($db_host, $db_user, $db_pass);
if( !$db )
{
die('Errore durante la connessione del database: ' . mysql_error());
}
if( !mysql_select_db($db_name, $db) )
{
die('Errore durante la selezione del database ' . mysql_error());
}
$query = 'SELECT MAX(`id`) FROM `iscritti`';
$ut = mysql_query($query, $db);
$row = mysql_fetch_row($ut);
$query2 = 'SELECT `nome` FROM `iscritti` ORDER BY id DESC LIMIT 1';
$ut2 = mysql_query($query2, $db);
$row2 = mysql_fetch_row($ut2);
echo "Persone attualmente iscritte: ",$row[0];
echo "
";
echo "Ultimo iscritto: ",$row2[0];
mysql_close($db); T_endif;
?></td>
</tr>
<tr>
<td width="89" valign="top">
Password</p>
<?php include ("cfgconn.php"); ?></p></td>
</tr>
<tr>
<td height="45" colspan="2" background="/grafica/menu.gif"></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="2">
[url="/comocommunity.php"]Home[/url]</p>
Chi Siamo</p>
Come Funziona</p>
[url="/iscrizione.php"]Iscriviti[/url]</p>
Chat</p>
</p></td>
<td>
Benvenuti nel sito più IN di Como</p>
ciao</p></td>
<td>
</p> </td>
</tr>
<tr>
<td height="45" colspan="2" background="/grafica/menust.gif"></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="4">
</p> </td>
</tr>
</table>
</p>
</body>
</html>
Codice PHP:
<?
ob_start();
session_register("autorizer");
header ("location: comocommunity.php");
ob_end_flush();
?>
Warning: session_register(): Cannot send session cookie - headers already sent by (output started at /var/www/netsons.org/comocommunity/comocommunity.php:4) in /var/www/netsons.org/comocommunity/auth.inc on line 3
Warning: session_register(): Cannot send session cache limiter - headers already sent (output started at /var/www/netsons.org/comocommunity/comocommunity.php:4) in /var/www/netsons.org/comocommunity/auth.inc on line 3
Warning: Cannot modify header information - headers already sent by (output started at /var/www/netsons.org/comocommunity/comocommunity.php:4) in /var/www/netsons.org/comocommunity/auth.inc on line 4