一聚教程网:一个值得你收藏的教程网站

热门教程

将OICQ数据转成MYSQL数据

时间:2022-07-02 09:47:34 编辑:袖梨 来源:一聚教程网

This file is /tmp/phpBeoJQ5 .
################# You can copy this code to test #################
 
include("include/dbclass.inc"); //可以用 MYSQL.INC 类代替测试
$q = new DB_Sql;
$db = $q->Database; //define the database
mysql_connect('localhost:3306',$q->User,$q->Password);
?>
enctype="multipart/form-data">
value="">
terminated by value="," size=2>


Which table you want to insert ?




function show_field($db,$table,$num,$selected_field) {
$result = mysql_db_query($db, "SHOW KEYS FROM $table") or mysql_die();
$primary = "";
while ($row = mysql_fetch_array($result))
if ($row["Key_name"] == "PRIMARY")
$primary .= "$row[Column_name], ";
$result = mysql_db_query($db, "SHOW FIELDS FROM $table");
if (!$result) {
mysql_die();
}
else {
echo "nn";
}
}
function show_table($db,$selected_table) {
$tables = mysql_list_tables($db);
$num_tables = @mysql_numrows($tables);

热门栏目