0
Great, I need some help. I’m around this problem for almost a day. In this code that updates the data to phpmyadmin does not change anything but also does not give me any error.
<?php
// definições de host, database, usuário e senha
$conn = mysql_connect("localhost", "root", "");
mysql_select_db("navegador", $conn);
//$id = $_GET['id'];
$ID = $_POST["ID"];
$Nome = $_POST["Nome"];
$NumeroBI = $_POST["NumeroBI"];
$Morada = $_POST["Morada"];
$Telefone = $_POST["Telefone"];
$DataNasc = $_POST["DataNasc"];
$Email = $_POST["Email"];
$Password = $_POST["Password"];
$is_admin = $_POST["is_admin"];
$sqlupdate ="update tb_utilizador SET Nome='$Nome', NumeroBI='$NumeroBI', Morada='$Morada', Telefone='$Telefone', DataNasc='$DataNasc',
Email='$Email', Password='$Password', is_admin='$is_admin' WHERE ID='$ID' " or die (mysql_error());;
this command has been discontinued, use mysqli or Pdo
– Adriano Luz
Where phpmyadmin comes into doubt?
– Bacco
It doesn’t go directly in. It’s just the database I’m using . But I’ve already removed
– ChrisAdler
The database is Mysql if you want to tag it correctly. Phpmyadmin is just a tool for editing.
– Bacco