1
活動/聚會區 / 12/16 台北 - 大食團
« 於: 2009-12-13 23:38 »
因為我星期三會去台北
有沒有人要大食團啊?
先定晚上六點半吧?
有沒有人要大食團啊?
先定晚上六點半吧?
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
xmlData = urllib.urlopen(getPhotoXml)
data = xml.dom.minidom.parse(xmlData)
if data.getElementsByTagName('photo') :
for node in data.getElementsByTagName('photo'):
if os.path.exists('content/image/' + os.path.basename(node.getAttribute('photo_url'))
) == False :
os.system('cd content/image/; wget ' + node.getAttribute('photo_url') + ' > /dev/null' )
if data.getElementsByTagName('viedo') :
for node in data.getElementsByTagName('viedo'):
os.system('cd content/viedo; wget ' + node.getAttribute('photo_url') )
define('DB_NAME','test');
define('DB_USER','test');
define('DB_PASSWD','test');
define('DB_HOST','localhost');
define('DB_TYPE','mysql');
$dbh = new PDO(DB_TYPE.':host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_PASSWD);
$sql = 'select * from test';
foreach ( $dbh->query($sql) as $value)
{
echo $value[col];
};
$sth = $dbh->prepare('update db set zh_CN= :str where SN=:SN');
$sth->bindParam(':str',$str,PDO::PARAM_STR,12);
$sth->bindParam(':SN',$SN);
$sth->execute();
$sth = $dbh->prepare('insert into db ("zh_CN","zh_TW")values(:str , :SN');
foreach ($array => $value )
{
$sth->bindParam(':str',$value[str],PDO::PARAM_STR,12);
$sth->bindParam(':SN',$value[SN]);
$sth->execute();
}
$sth = $dbh->prepare('select * from db where SN = :SN');
$sth->bindParam(':SN',$value[SN]);
$sth->execute();
while($meta = $sth->fetch(PDO::FETCH_ASSOC))
{
echo $meta["name"];
}
$sth = $dbh->prepare('select * from db where SN = :SN');
$sth->bindParam(':SN',$value[SN]);
$sth->execute();
if ($sth->errorCode())
{
echo "有錯誤!有錯誤!";
print_r($sth->errorInfo());
}