-1
I’m using this code
include_once('../conexao.php');
$query = "SELECT titulo FROM info";
$result = mysqli_query($conexao, $query);
$titulo = mysqli_fetch_assoc($result);
<input type="text" class="form-control" id="tp_Control" placeholder="Digite o título" value=<?php echo implode($titulo) ?>>
The above code takes the title of the page that is in the database and puts it in the text box, but every time I check the text box the title is not being shown at all, after the space it disappears, but when I look at the title of the page it samples all, without the cut. And the code I use for the title is this.
<title><?php echo implode($titulo) ?></title>
Does anyone have any idea what it might be?
How about trying to embrace input value with quotes? .... value="<? php echo implode($title) ?>">
– user60252