1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <?
mysql_connect('XXXXX','XXXXXXX','XXXXXXX');
mysql_select_db('omolog_bdd');
$result = mysql_query("select * from forum_users ORDER BY user_id");
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
$after_user_id = $row[0];
$after_user_regdate = $row[7];
$after_username = $row[2];
$after_user_password = $row[3];
$after_user_email = $row[34];
$after_user_lastvisit = $row[6];
$after_user_posts = $row[9];
$sql_temp = "('$after_user_id', '$after_user_regdate', '$after_username', '$after_user_password', '$after_user_email', '$after_user_lastvisit', '$after_user_posts', 'fr', '1.00', '1', '|d M Y|, H:i', '1'),"."('$after_user_id', '$after_user_regdate', '$after_username', '$after_user_password', '$after_user_email', '$after_user_lastvisit', '$after_user_posts', 'fr', '1.00', '1', '|d M Y|, H:i', '1'),";
$sql .= $sql_temp;
$sql_temp = "";
}
mysql_free_result($result);
echo "$sql";
?> |