Posts by Rogerio Ap. Silva • 1 point
3 posts
-
-1
votes2
answers77
viewsA: How to recover session data beyond ID
never use without initializing the session. if(!isset($_SESSION)) The correct thing is session_start(); if(!isset($_SESSION['usuario'])){ To check the contents of the standard PHP variables just…
-
-2
votes2
answers138
viewsA: Session check problem in PHP
My suggestion is that you check in the following way. <?php session_start(); if(!isset($_SESSION['usuario'])){ echo "<p>Usuário não está logado</p>"; $_SESSION['usuario'] =…
phpanswered Rogerio Ap. Silva 1 -
-3
votes2
answers1373
viewsA: Program to read 4 values and show in ascending order
I hope it helps you... I did it quickly in PHP. It hasn’t been tested much $a = 4; $b = 2; $c = 8; $d = 6; $primeiro = $a; $segundo = 0; $terceiro = 0; $quarto = 0; // verificando primeiro numero if…