Change DB
errorCode() != 0)) {
$error = PDO_ErrorInfo();
print_r($error[2]);
exit;
}
echo "create $i ok
";
$guid = GUIDv4();
$query = "INSERT INTO album (id, guid,title,file,cover,language,author,target,summary,publish_time,update_time,edition1,type) VALUES ('1','$guid','" . $book[$i] . "', '$filename','','0','VRI','','','1','1','CSCD4','1')";
$stmt = @PDO_Execute($query);
if (!$stmt || ($stmt && $stmt->errorCode() != 0)) {
$error = PDO_ErrorInfo();
print_r($error[2]);
exit;
}
echo "insert $i ok
";
$query = "ALTER TABLE data ADD album INTEGER";
$stmt = @PDO_Execute($query);
if (!$stmt || ($stmt && $stmt->errorCode() != 0)) {
$error = PDO_ErrorInfo();
print_r($error[2]);
exit;
}
$query = "UPDATE data SET album = '1' WHERE 1 ";
$stmt = @PDO_Execute($query);
if (!$stmt || ($stmt && $stmt->errorCode() != 0)) {
$error = PDO_ErrorInfo();
print_r($error[2]);
exit;
}
}
if ($from == $to) {
echo "齐活!功德无量!all done!
";
} else {
echo "";
echo "正在载入:" . ($from + 1) . "——" . $book[$from + 1];
}
?>