db_com_open()) echo "connection failed
".$db->db_com_get_last_error()."
"; if(!$db->db_com_select_db($dbname)) echo "selection of database failed
".$db->db_com_get_last_error()."
"; if(!$db->db_com_query($sql)) echo "query failed
".$db->db_com_get_last_error()."
"; while($result = $db->db_com_get_next_result()) { $link=$result[0]; } $db = new db_com; $ip= $REMOTE_ADDR; $datum=date(Y)."-".date(m)."-".date(d); $woher=0; $wie= $HTTP_USER_AGENT; $sql ="INSERT into webring (ip,aufruf,datum,seitenname,browser) values ('".$ip."',".$pos.",'".$datum."',$woher,'".$wie."')"; $db = new db_com; if(!$db->db_com_open()) echo "connection failed
".$db->db_com_get_last_error()."
"; if(!$db->db_com_select_db($dbname)) echo "selection of database failed
".$db->db_com_get_last_error()."
"; if(!$db->db_com_query($sql)) echo "query failed
".$db->db_com_get_last_error()."
"; ?>