Hi, i would like to take user_id from forums database and insert this data in other database. I have the folow code:
include ('./../admin/conexion.php'); <-- Here i connect whit my database
define ('PUN_ROOT', './../foro/'); // <--here whit forum's DB
include PUN_ROOT.'include/common.php';
$usuario= $pun_user['id']; <-- i define user id
if(!$anadir=mysql_query("INSERT INTO wiki (fecha_insertado,u_fecha_modificacion,titulo,articulo,id_autor) values (CURDATE(),CURDATE(),'$titulo','$texto','$usuario')")) <-- and here y try insert
This code generate an error:
Table 'foros_anait.wiki' doesn't exist
wiki is my DB and foros_anait y the forum's DB