本文整理汇总了PHP中Control::export方法的典型用法代码示例。如果您正苦于以下问题:PHP Control::export方法的具体用法?PHP Control::export怎么用?PHP Control::export使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Control
的用法示例。
在下文中一共展示了Control::export方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: extract
$Planche->error('Invalid request');
socket_close($client);
continue;
}
extract(json_decode(base64_decode($REQUEST['PARAMS']['cmd']), true));
echo "Execute Query\n";
echo "Connect {$host}, {$user}, **************, {$db}\n";
if ($Planche->connect($host, $user, $pass, $db)) {
echo "Connection Successful\n";
echo "The execution SQL is\n";
print_r($query);
echo "\n";
$Planche->setCharset($charset);
if ($type === 'export') {
if (is_array($query) == true) {
$Planche->export($query[0]);
} else {
$Planche->export($query);
}
} else {
if ($type == 'copy') {
$Planche->query("SET foreign_key_checks = 0");
}
$Planche->execute($query);
}
$Planche->close();
echo "-----------------------------------------------------------------------\n";
} else {
echo "ERROR : CONNECTION FAILED {$host}, {$user}, , **************, {$db}\n";
echo "-----------------------------------------------------------------------\n";
}
示例2: extract
continue;
}
extract(json_decode(base64_decode($REQUEST['PARAMS']['cmd']), true));
echo "Execute Query\n";
if (@(!$db)) {
$db = '';
}
echo "Connect {$host}, {$user}, **************, {$db}\n";
if ($Planche->connect($host, $user, $pass, $db)) {
echo "Connection Successful\n";
$Planche->setCharset($charset);
echo "The execution SQL is\n";
if ($type === 'export') {
if (is_array($query) == true) {
echo $query[0] . "\n";
$Planche->export($query[0]);
} else {
echo $query . "\n";
$Planche->export($query);
}
} else {
if ($type == 'copy') {
$Planche->query("SET foreign_key_checks = 0");
}
echo $query . "\n";
$Planche->execute($query);
}
$Planche->close();
echo "-----------------------------------------------------------------------\n";
} else {
echo "ERROR : CONNECTION FAILED {$host}, {$user}, , **************, {$db}\n";