Hello everyone,
I have the following script:
<?php
$con=mysqli_connect("localhost","name","name","database");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$resultaat = mysqli_query($con, "SELECT `question` FROM databasename WHERE `id`= 2");
while ($row = mysqli_fetch_assoc($resultaat))
{
echo '<table>';
echo '<tr>';
echo '<td>'. '<input type="text" value= '.$row['question'] . ' </td>';
echo '<td>' . "<input type='submit' value='Update'>" . '</td>';
echo '</tr>';
echo '</table>';
}
?>
Now what the problem is, is that only the first word is show. While the row[question] more than 1 word.
Tried and googled..
Thanks
Reminem