Posts by Sarah Leesy • 41 points
7 posts
-
-1
votes1
answer118
viewsQ: Accent error in PHP
I’m having stress problems in PHP. In the database is inserted with the right accent, but when I return to PHP the accent is not returned correctly, someone can help me? <!DOCTYPE html>…
phpasked Sarah Leesy 41 -
0
votes1
answer41
viewsQ: Does anyone know what I have to do on this table so it doesn’t get crooked like that?
foreach ($registro as $reg){ echo " <table class='centered' > <thead> <tr> <th>Nome</th> <th>Telefone</th> <th>Email</th> </tr>…
-
2
votes2
answers131
viewsQ: Can anyone tell me what is causing this error
the email field in the database is Unique <?php require_once("conexao.php"); $nome = $_REQUEST['nome']; $email =$_REQUEST['email']; $telefone = $_REQUEST['telefone']; try{ $conexao = new…
-
-1
votes1
answer25
viewsQ: Why am I unable to fetch any data from a mysql table
what error there is in Foreach? <?php $banco = "mysql:dbnmae=banco;host=localhost"; $user = "root"; $senha = ""; try{ $conn= new PDO($banco,$user,$senha); echo "<h1>conectado com…
-
0
votes1
answer225
viewsQ: How to capture a $_FILE file name and print to an echo
<form action="upload2.php" method="post" enctype="multipart/form-data"> <input type="file" name="arquivo[]" multiple="multiple"/><br/><br/> <input type="submit"…
phpasked Sarah Leesy 41 -
-3
votes1
answer80
viewsQ: Is there a syntax error in this php code?
I’m still beginner in php, here’s the code, here’s giving syntax error <?php function conexao(){ $banco = "curosphp_mysql"; $usuario = "root"; $senha = ""; $host = "localhost";…
phpasked Sarah Leesy 41 -
0
votes1
answer150
viewsQ: How to create a PHP and MYSQL search
Database: Registration Table = People Records: id, name, sex and phone index php. <form method="post" action="index2.php"> <input type="text" name="pesquisar"…
phpasked Sarah Leesy 41