I probably have some injection error in my code, but I don't know where this is happening.
$name = 'Toshiba LED TV 32" 32W2333D HD Ready';
$query = "UPDATE `tv`
SET `title` = '" . $this->mysqli->real_escape_string($name). "'
WHERE `id` = '" . $id . "'";
$prep = $this->mysqli->prepare($query);
$prep->execute();
Instead to get in field title:
Toshiba LED TV 32" 32W2333D HD
I get:
Toshiba LED TV 32"
whereis probably wrong too.WHERE '42'? perhaps it should beWHERE id = '42'or something. Since you're using mysqli, why are you manually escaping anyways? Why not use a prepared statement and placeholders?