Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/kennel/public_html/db.php:19) in /home/kennel/public_html/livro2/logon_confirm.php on line 17
$userid="$userid";
$d="$pass";
include("../db.php");
$resultado = mysql_query("SELECT * FROM cliente WHERE nome='$userid' and codigo = '$d'");
$num_linhas = mysql_num_rows($resultado);
if ($num_linhas == 0){
echo "Usuário ou senha inválidos<br>";
echo "<a href=javascript:history.go(-1)>Voltar</a>";
}else{
while ($linha=mysql_fetch_array($resultado)){
$id_user=$linha["nome"];
$nome_user=$linha["id"];
session_start();
session_register('id_user','nome_user');
$se = true;
}
Question
setokaiba
alguém sabe por que esse erro????????
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.