[PHP] RE: Problems with a simple While-If condition With the statement

2002-11-26 Thread Rodrigo de Oliveira



"
?>

Nenhum profissional cadastrado.";
}
?>

ID Profissional";
echo"".$row['id']."";

echo"Nome";
echo"".$row['nome']."";

echo"Profissão";
echo"".$row['area']."";

echo"Bairro";
echo"".$row['bairro']."";

echo"Telefone";
echo"".$row['telefone']."";

echo"E-mail";
echo"".$row['email']."";

echo"Telefone Celular";
echo"".$row['celular']."";

echo"Registro Profissional";
echo"".$row['regprof']."";

echo"Endereço";
echo"".$row['endereco']."";

echo" ";
echo" ";


?>

";
?>



[PHP] Re: Problems with a simple While-If condition

2002-11-26 Thread Jason Romero
try using the extract command instead of the array reference
ie:
ID Profissional";
echo"$id";
?>

instead of :
while ($row = mysql_fetch_array($res)) {
?>
ID Profissional";
echo"".$row['id']."";


Jason



"Rodrigo De Oliveira" <[EMAIL PROTECTED]> wrote in message
002501c295a6$3e048ab0$6ed4a5c8@soho">news:002501c295a6$3e048ab0$6ed4a5c8@soho...
This is the fact:

I'm building a homepage that can access a mysql database, and display the
records within a certain condition. Following this it is verified if the sql
result was empty then  it should write a certain frase, if not it should
write the records. I've got the worst part ok, the while that display the
results, but the if isn't being verified, it writes the frase anyway.
Please help, the code is right under the file name:


indicador.php




"
?>

Nenhum profissional
cadastrado.";
?>

ID Profissional";
echo"".$row['id']."";

echo"Nome";
echo"".$row['nome']."";

echo"Profissão";
echo"".$row['area']."";

echo"Bairro";
echo"".$row['bairro']."";

echo"Telefone";
echo"".$row['telefone']."";

echo"E-mail";
echo"".$row['email']."";

echo"Telefone Celular";
echo"".$row['celular']."";

echo"Registro Profissional";
echo"".$row['regprof']."";

echo"Endereço";
echo"".$row['endereco']."";

echo" ";
echo" ";


?>

";
?>


db_dados.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php