<?php$db = new PDO('odbc:SAMPLE', 'db2inst1', 'ibmdb2');$stmt = $db->prepare("insert into images (id, contenttype, imagedata) values (?, ?, ?)");$id = get_new_id(); // some function to allocate a new ID// assume that we are running as part of a file upload form/...
www.dbjr.com.cn/shouce/php5/zh/ref.p... 2025-6-8