Re: probelma en mysql o iplanet
| From: | stigma2 | Date: | Thu, 31 Jul 2003 06:59:29 +0000 |
| Subject: | Re: probelma en mysql o iplanet | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-38898@lists.php.net to get a copy of this message | ||
Hello Raul,
Thursday, July 31, 2003, 5:04:12 AM, you wrote:
RMS> Que tal,
RMS> estoy teniendo problemas con el uso de mysql, el crear una tabla no tengo
RMS> ningun problema, he aqui lo que hago:
RMS> <?
RMS> $user="username";
RMS> $password="password";
RMS> $database="database";
RMS> mysql_connect(localhost,$user,$password);
RMS> @mysql_select_db($database) or die( "Unable to select database");
RMS> $query="CREATE TABLE contacts (id int(6) NOT NULL auto_increment,first
RMS> varchar(15) NOT NULL,last varchar(15) NOT NULL,phone varchar(20) NOT
RMS> NULL,mobile varchar(20) NOT NULL,fax varchar(20) NOT NULL,email varchar(30)
RMS> NOT NULL,web varchar(30) NOT NULL,PRIMARY KEY (id),UNIQUE id (id),KEY id_2
RMS> (id))";
RMS> mysql_query($query);
RMS> mysql_close();
?>>
RMS> Muy rustico pero solo es una simple creacion de una tabla,
RMS> mi problema esta cuando trato de insertar datos a esta tabla, o a cualquier
RMS> otra tabla en sql, me aparace el siguiente error en el webserver:
RMS> Method Not Allowed
RMS> An error has ocurred
RMS> cuando checho la bitacora de mi servidor web me aparece:
RMS> [29/Jul/2003:18:50:28] config ( 325): for host bla.bla.bla.ybla trying to
RMS> POST /~raulms/test/test1/, handle-processed reports: The request method is
RMS> not applicable to this requested resource.tengo instalado todo
RMS> apropiadamente en mi equipo, pero no puedo hacer una simple insercion en
RMS> mysql, alguna sugerencia?
no pones la SQL que estas usando para insertar.. quizá esclarezca
algo...
--
Best regards,
stigma2 mailto:stigma2@telefonica.net