Retrieve variable from a URL

0

I pass the value as follows:

<td><a href="liberar.php?id='.$row["id"].'">Finalizar</a> </td>

And the URL arrives in this way:

 000.000.00.00/bitacora/liberar.php?id=11

id = 11 is value that I want to recover

To recover the id in (liberate.php) I have the following:     

include("database.php");


$folio =  $_GET['id'];

echo("Soy folio", $folio);
$id = 0;

$db = new database();
$id = $db->finalizaActividad($folio);
?>

Later that folio sent it to a query called finalizactivity

    
asked by Noel L 16.02.2018 в 00:44
source

1 answer

1

Your problem is the echo;

echo("Soy folio", $folio);

It should be like this:

 echo "Soy folio". $folio;
    
answered by 16.02.2018 / 13:50
source