<html>
<meta charset="UTF-8">
- Jun 03 Fri 2016 15:02
5/20
- Apr 15 Fri 2016 15:42
3/18
1.先開eclipse
2.
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "test";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM `user`";
$result = $conn->query($sql);
if ($result != null) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "id: " . $row["name"]. $row["passwd"]. "<br>";
}
} else {
echo "0 results";
}
$conn->close();
?>
- Apr 15 Fri 2016 15:34
2/19
-? -help 列印此說明訊息
-X 列印非標準選項的說明
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
啟用含指定詳細程度的宣告
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
停用含指定詳細程度的宣告
-esa | -enablesystemassertions
啟用系統宣告
-dsa | -disablesystemassertions
停用系統宣告
-agentlib:<libname>[=<options>]
載入原生代理程式程式庫 <libname>,例如 -agentlib:hprof
另請參閱 -agentlib:jdwp=help 與 -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
使用完整路徑名稱載入原生代理程式程式庫
-javaagent:<jarpath>[=<options>]
載入 Java 程式語言代理程式,請參閱 java.lang.instrument
-splash:<imagepath>
顯示指定影像的軟體資訊畫面
請參閱 http://www.oracle.com/technetwork/java/javase/documentation/index.html 暸
解詳細資訊。
C:\Users\student>javac
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
sed
-classpath <path> Specify where to find user class files and annotati
on processors
-cp <path> Specify where to find user class files and annotati
on processors
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compil
ation is done.
-processor <class1>[,<class2>,<class3>...] Names of the annotation processors
to run; bypasses default discovery process
-processorpath <path> Specify where to find annotation processors
-parameters Generate metadata for reflection on method paramete
rs
-d <directory> Specify where to place generated class files
-s <directory> Specify where to place generated source files
-h <directory> Specify where to place generated native header file
s
-implicit:{none,class} Specify whether or not to generate class files for
implicitly referenced files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release