prepare(" insert into object(id, type, name, summary, url, icon) values (:id, 'Person', :name, :summary, :url, :icon); "); $person_creation_stmt = $conn->prepare(" insert into actor(objectId, preferredUsername) values (:objectId, :preferredUsername); "); $object_creation_stmt->bindValue(':id', $id); $object_creation_stmt->bindValue(':name', $name); $object_creation_stmt->bindValue(':summary', $summary); $object_creation_stmt->bindValue(':url', $url); $object_creation_stmt->bindValue(':icon', $icon_url); $object_creation_result = $object_creation_stmt->execute(); if (!$object_creation_result) { echo 'Error: failed to insert object.' . PHP_EOL; die(); } $person_creation_stmt->bindValue(':objectId', $id); $person_creation_stmt->bindValue(':preferredUsername', $preferred_username); $person_creation_result = $person_creation_stmt->execute(); if (!$person_creation_result) { echo 'Error: failed to insert person.' . PHP_EOL; die(); } echo "Actor with ID $id created successfully!" . PHP_EOL; $conn->close();