connect("localhost ","root","2027205","bh38") 或 die("連線不成功"); $conn->execute("set names gb2312"); $conn->execute("INSERT"/> connect("localhost ","root","2027205","bh38") 或 die("連線不成功"); $conn->execute("set names gb2312"); $conn->execute("INSERT">
我寫的範例
複製程式碼 程式碼如下:
require("adodb/adodb.inc.php") ;
$c
$conn->connect("localhost","root","2027205","bh38") or die("連線不成功");
$conn->execute( "set names gb2312");
$conn->execute("INSERT INTO `vv` (`cc`) VALUES ('換了個編碼不知道行不行');") or die("錯誤") ;
$rc=$conn->execute("select * from vv");
while(!$rc->EOF)
{
echo($rc->fields。 "]);
$rc->movenext();
}
?>