PHP Tutorials Import third-party app membership tables into the Ucenter memberfields table
MySQL tutorial _connect (' localhost ', ' 0731-cn ', ' 0731licheng1 ') or Die (' sever ');
mysql_select_db (' 0731-cn ') or Die (' Database error ');
$sql = "Select uid from member";
$query = mysql_query ($sql) or Die (' ddd ');
while ($row = Mysql_fetch_array ($query))
{
mysql_query ("INSERT into Uc_memberfields (Uid,username,password,email,myid,myidkey,regip,regdate,lastloginip, Lastlogintime salt,secques) VALUES (' ". $row [' uid ']." ', ' ". $row [' uid ']." ') " Or Die (' jjjjj '. mysql_error ());
}
echo "Import all";
http://www.bkjia.com/PHPjc/632047.html www.bkjia.com true http://www.bkjia.com/PHPjc/632047.html techarticle PHP Tutorials Import third-party app membership tables into the Ucenter memberfields table MySQL tutorial _connect (' localhost ', ' 0731-cn ', ' 0731licheng1 ') or Die (' sever '); mysql_select_db (' 0731-cn ') or Die (' ...