Walther, when i put that code into the script where users use to form to signup (signup.php) then it gives me an error on line 74 of the script, which is before where i put that piece of code.. I think it was a parse error.. not sure though.. that would be an ideal way to do it though....... any suggestions?
Snoopy, I closed the parenthesis like you suggested:
<?php
//connection to first database
$db = mysql_connect('localhost', 'pseud_', 'password') or die ("no connection possible");{
mysql_select_db('pseud_pictures', $db);}
//reading the information
$sql=mysql_query("SELECT * FROM users");
while {($array=mysql_fetch_array($sql))
//connecting to second database
$db = mysql_connect('localhost', 'pseud_xmb5', 'password') or die ("no connection possible");{
mysql_select_db(pseud_xmb5, $db);}
//inserting the values
$sql=mysql_query("INSERT INTO phpbb_users (username, user_password) VALUES ( '$array[username]', '$array[password]'")}
?>
I think that's right, but it gives me an error:
Parse error: parse error, expecting `'('' in /home/pseud/public_html/session.php on line 9
Thanks for your help guys, it's really appreciated...