Posts by gustavo • 13 points
1 post
-
1
votes2
answers91
viewsQ: part of my php code is displayed in the browser when I do not open with localhost. How do I resolve?
if ($validacao) { $pdo = Banco::conectar(); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "INSERT INTO perguntas (p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) VALUES…