Voila j'aimerai que l'inscription a mon site inscrive aussi le gars sur mon forum phpbb et voici mon code :
<?require ("../forumsv2/config.php");
mysql_connect($server,$user,$pass_bd);
mysql_select_db($base);
$req1 = mysql_query("SELECT * FROM phpbb_users ORDER BY id DESC");
$sql1 = mysql_fetch_array($req1);
$dernier_id = $sql1['user_id']+1;
$pass = md5($_POST['pass']);
mysql_query("INSERT INTO phpbb_users VALUES('".$dernier_id."','', '".$pseudo."', '".$pass."','','','','','','','','NULL','NULL','','','','','','','','NULL','NULL','','','','','','','','','','','NULL','','NULL','NULL','NULL','NULL','NULL','NULL','NULL','NULL','NULL','NULL','NULL','NULL','NULL','','','','','','','','','','','','','','','','','','','','','','','','' ") or die (mysql_error());
?>
Voici l'erreur :Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a/adozbe/www/france/inser.php on line 126
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1