<?php
session_start();
include('dbhead.php');
if(!isset($_SESSION['user'])) { die("E` necessario essere identificati per accedere a questa pagina!"); }
$asd_id = $_SESSION['id'];
$query = "SELECT * FROM rivenditori WHERE id='$id'";
$result = mysql_query($query, $db);
$sql_data = mysql_fetch_object($result);
$nc = $sql_data->nome .' '.$sql_data->cognome;
echo "
asd: $nc
";
?>
perchè ricevo questo errore? -_-
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at rivenditori.php:1) in rivenditori.php on line 2
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at rivenditori.php:1) in rivenditori.php on line 2
per andare su rivenditori.php uso:
header("Location: $page_rivenditore");
l'ho fatto con altre pagine e non ci sono problemi.. in riga 1 in rivenditori.php c'è solo il tag php.. bah perchè mi da errore?
![]()