How do I update a table and convert say, 66.249.75.215, from one column to another column as 0x249f94bd7. Both columns are varbinary. I’m using PDOConnect and this isn’t working:
$stmt = $pdo->prepare("UPDATE `download` SET `ip_address` = (?) WHERE ip_address is null");
$stmt->execute(inet_aton(`ADDRESS`)) ;
I’m getting the following error:
Fatal error: Uncaught Error: Call to undefined function inet6_aton() in /home/larry/web/test/public_html/index.php:31 Stack trace: #0 {main} thrown in /home/larry/web/test/public_html/index.php on line 31
Thanks in advance