mercredi 5 septembre 2018

Assignment value in a session array in PHP 7.0 error

I wrote this code

   <?php
    session_start();
    if($_POST["num"] > $_SESSION["valutazioni"][$_POST["titolo"]])
        $SESSION["valutazioni"][$_POST["titolo"] = $_POST["num"];
?>

The IDE gives me an error but I think my syntax is correct

Aucun commentaire:

Enregistrer un commentaire