在ANDROID Studio中:如何在ImageView上完成第一个onClick事件之前,防止执行第二个onClick事件。 我们可以在此处使用andThen方法使用线程和并发...吗? 在这里的任何帮助将不胜感激。 请在下面找到代码:
$userName = "root";
$password = "";
$dbName = "test";
$conn = @new mysqli($serverName,$userName,$password,$dbName);
if ($conn->connect_errno) {
echo "Failed to connect to MySQL: " . $con->connect_errno;
echo "<br/>Error: " . $con->connect_error;}
$fileName = "189_dump.sql.gz";
$temp = "";
$lines = file($fileName);
foreach($lines as $line){
if(substr($line, 0, 2) == '--' || $line == '')
continue;
$temp .= $line;
if(substr(trim($line), -1, 1) == ';'){
$conn->query($temp) or print('Error performing query \'<strong>' . $temp . '\': '. '<br /><br />');
$temp = "";
}
}
echo "imported db (or not)";
?>