🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #7679

un insert con php

#7679
From: [ZoRo]
Date: Thu, 06 Feb 2003 22:51
14 lines
1421 bytes
Hola tengo el script de abajo en php que lo que pretende es insertar en una
base ded atos un registro pero nunca me inserta.
Me podeis decir que hago mal?
gracias

mysql_select_db ("radio", $connection_id);
$result =mysql_query("INSERT INTO noticias
(titulo,subtitulo,descripcion,imagen,reportaje,firma) values
('$titulo','$subtitulo','$descripcion','$imagen','$reportaje','firma')");
if(mysql_insert_id() > 0){
echo("INSERTADO");
else{
echo("NO INSERTADO");
}
Technical Details
Message-ID: <b1uouc$176tsr$1@ID-59646.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!217-127-108-221.uc.nombres.ttd.ES!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,4ee2166411cd4092,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-02-06 14:51:58 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!217-127-108-221.uc.nombres.ttd.ES!not-for-mail
From: "[ZoRo]" <granbilbao_NOSPAM_@latinmail.com>
Newsgroups: es.comp.os.linux.programacion
Subject: un insert con php
Date: Thu, 6 Feb 2003 23:51:07 +0100
Lines: 16
Message-ID: <b1uouc$176tsr$1@ID-59646.news.dfncis.de>
NNTP-Posting-Host: 217-127-108-221.uc.nombres.ttd.es (217.127.108.221)
X-Trace: fu-berlin.de 1044571917 41121691 217.127.108.221 (16 [59646])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106