CRUD com PHP PDO

PHOTO EMBED

Fri Oct 22 2021 19:26:41 GMT+0000 (UTC)

Saved by @nilreis #php

<?php
    $nome = $_POST["nome"];
    $email = $_POST["email"];
    $tel = $_POST["tel"];

    include_once 'conexao.php';

    $sql = "insert into cliente values(null,
            '".$nome."','".$email."','".$tel."')";
    //echo $sql;

    if(mysql_query($sql,$con)){
        $msg = "Gravado com sucesso!";
    }else{
        $msg = "Erro ao gravar!";
    }
    mysql_close($con);
?>
content_copyCOPY

https://www.devmedia.com.br/crud-com-php-pdo/28873