I have the string "Tea For Nosps" (without the quotes)stored in a table column in a MySql DB. For some reason, when I retrieve this string, the only portion that displays is "Tea". So everything after the first space is being ignored. The string is being retrieved into $boat_col_value[$i] in the following code snippet. The same thing happens for all the strings in all the columns.
I would appreciate a suggestion as to how to retrieve the entire string.
$query = "SELECT * FROM boat WHERE certificate = '$certificate' " ;
$result = $db -> query( $query ) or die( "Error Number: " . mysqli_errno($db) . " :" . mysqli_error($db) ) ;
$row = $result->fetch_assoc() ;
$i = 0 ;
echo "<table>" ;
foreach ( $row as $value ) {
$boat_col_value[$i] = $value ;
if ( $i % 5 == 0) {
echo "</tr>" ;
echo "<tr>" ;
}
echo "<td>".$headers[$i]."<input type=\"text\" name= " .$boat_cols[$i]. " value = " .$boat_col_value[$i]. "></td>" ;
$i++ ;
}