I am storing a string of characters typically 90 to 110 characters long. I created the dbt using the following code
<?php
require_once 'login.php';
$conn = new mysqli($hn, $un, $pw, $db);
if ($conn->connect_error) die($conn->connect_error);
$query = "CREATE TABLE IF NOT EXISTS Runner (
id SMALLINT NOT NULL AUTO_INCREMENT,
datastring VARCHAR(150) NOT NULL,
PRIMARY KEY (id)
)";
$result = $conn->query($query);
if (!$result) die ("Database access failed: " . $conn->error);
?>
(So far as I understand it I could have up to 255 characters where I have written 150 )
When I write into the dbt, the string is being cut short; I not quite sure of the truncated length, but I think it might be 80 characters long. (The system shamelessly tells me the length of my original string ! )
Can anyone tell me what I did wrong, please ?