3
I take the name of the news and insert in another table, but one of the fields is going by half, follows image of print:
Database
Source code of where send:
<input name="nomenoticia" type="hidden" id="nomenoticia"
value="PC realiza apreensão de arma de fogo e droga no Bairro Jardim Esperança." size="80"
maxlength="100">
Excerpt from the code I’m doing
$noticia = $_POST['noticia'];
$titulonoticia = $_POST['nomenoticia'];
$nome = $_POST['nome'];
$comentario = $_POST['comentario'];
$status = $_POST['status'];
$sqlInsert= "INSERT INTO comentarios (noticia,nomenoticia,nome,comentario,status) VALUES (:noticia,:nomenoticia,:nome,:comentario,:status)";
$stmt = DB::prepare($sqlInsert);
$stmt->bindParam("noticia", $noticia);
$stmt->bindParam("nomenoticia", $titulonoticia);
$stmt->bindParam("nome", $nome);
$stmt->bindParam("comentario", $comentario);
$stmt->bindParam("status", $status);
$stmt->execute();
It is not easy to identify a problem. First we do not know the maximum column size
nomenoticia
I think this is the one you’re saying is cut off. According to me I do not know if the software you are using is not showing the rest, if you have not slid the column limit to show more parts of the text, IE, that is just a visualization problem and not programming. With this information, it becomes easier to know what happens.– Maniero
the column is empty(255) for the text is even cut even http://i.imgur.com/lB9WNNP.jpg
– Arsom Nolasco
It is accentuation problem. You need to check the encoding that is fearing the data and what is the encoding used in the database. Incompatibility is discarding everything from the accent.
– Maniero
I really tested here in other fields and happened the same the Collation of the fields are in utf8_general_ci the bank is all in utf-8 and the pages are also with met utf-8
– Arsom Nolasco
I solved the problem, it was really the goal utf-8 had not on the page of comments. Anyway thanks for the attention
– Arsom Nolasco
I will answer then not to leave unanswered.
– Maniero