I tried to insert a hex code to an SQL database by PHP, but it cannot be done. I tried to UNHEX but it does not give any results. Input code:
<input type="color" name="color">
Inserting PHP code:
$color = $_POST['color'];
$query = "INSERT INTO `kolor` (`color`) VALUES (UNHEX($color))";