Кажется, он работает, как я его настроил, он показывает только первый символ ...
Я осмотрел область, и это то, что я вижу
<input type="text name=" title'="" value="A" b="" c="">
PHP код
<?php
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$servername = "some.sort.of.ip";
$username = "admin";
$password = "somesortofpassword";
$dbname = "blog";
if (isset($_GET['postid'])) {
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
$sql = "SELECT id, title, content, author, date FROM posts where id = ?";
$stmt = $conn->prepare($sql);
$stmt->bind_param('i', $_GET['postid']);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
// output data of each row
// while looop is not necessary, you are only returning one row
$row = $result->fetch_assoc();
echo "<form><input type='text name='title' value=" . $row['title']. "></form>";
}
$conn->close();
} else {
echo "<p>0 results</p>";
}
?>
Заголовок сообщения в блоге: «A b c»
Все помогает ...