Pagina 1 din 1

Nu gaseste sessionea

Scris: Lun Aug 08, 2011
de claUdiu
Am si eu urmatorul cod:

Cod: Selectaţi tot


<php
session_start();
if (!session_is_registered(email)){
header("location ../../login.php");
}
?>
<?php
ERROR_REPORTING(E_ALL | E_STRICT);
include("../../config.php");

$email = $_SESSION['email'];

$select_user = mysql_query("SELECT * FROM users WHERE email = '$email'");

while ($show1 = mysql_fetch_assoc($select_user)){

$to_first_name = $show1['first_name'];
$to_last_name = $show1['last_name'];

}

$select_msg = mysql_query("SELECT * FROM messages WHERE to = '".$to_first_name." ".$to_last_name."'");

while ($show2 = mysql_fetch_assoc($select_msg)){

echo '
<table border="1">
<tr>
<td>From</td>
<td>Subject</td>
<td>Date</td>
</tr>
<td>'.$show2['from'].'</td>
<td><a href="read_msg.php?mid='.$show2['id'].'">'.$show2['subject'].'</a></td>
<td>'.$sho2['date'].' '.$show2['hour'].'</td>
</tr>
</table>
';
}
?>

Si la linia 11 imi spune:

Cod: Selectaţi tot

Notice: Undefined variable: _SESSION in /home/hosting/gamestime/4friends.hi2.ro/account/messages/messages.php on line 11

De ce scrie asa? Eu am pus session_start(); la inceput... Ce problema poate sa aiba...? Mss

Nu gaseste sessionea

Scris: Lun Aug 08, 2011
de Wayn3
Pune

Cod: Selectaţi tot

<?php error_reporting (E_ALL ^ E_NOTICE); ?>
la inceputul paginii si nu o sa-ti mai apara..

Nu gaseste sessionea

Scris: Lun Aug 08, 2011
de claUdiu
Acuma imi da:

Cod: Selectaţi tot


Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/hosting/gamestime/4friends.hi2.ro/account/messages/messages.php on line 24

..

Nu gaseste sessionea

Scris: Lun Aug 15, 2011
de Wayn3
Eroarea asta vine de la o scriere gresita a unei comenzi mysql.