Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/10/2005, 12:17
under_ground
 
Fecha de Ingreso: abril-2005
Mensajes: 491
Antigüedad: 19 años
Puntos: 1
okey, ahora paso, pero algo hay que no me esta guardando en la bd he aqui el código:


$result='';
$result=mysql_query("SELECT idrut FROM tbusuario where idrut='".rutuser."'")or die(mysql_error());

$str='';
$str="insert into tbnoticia(TBUsuario_IDRut,nautor,ntitulo,ncategori a,nbajada,nfecha)values('$result','$autor','$titul o','$categria','$bajada',now())";
mysql_query($str);

creo que hay un problema al comparar y recoger la variable idrut porque si lo ingreso en bruto pasa sin problemas