[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SOLUCIONADORe: que esta mal en este script???



On Mon, 2005-10-24 at 12:44 -0700, gogolac wrote:
> gracias a los que tuvieron la bondad de no acabarme por comerter el
> graso error de no identificar el tema como OFF TOPIC,
> gracias mil a los que otra vez me pusieron en el camino, la solucion ya
> esta dada.

Pero el script esta mal!!! dice "selecionando"... jajaja.

> 
> gracias a todos.
> gogo.
> 
> gogolac ha escrito:
> 
> > bueno este es el script:
> >
> > <html>
> > <body>
> > <?php>
> >
> > function conectarse()
> >  {
> >      if
> >   (!($link=mysql_connect("localhost","root","xxxxxxxxx"
> >   )))
> >      {
> >        echo "error conectando a la base de datos.";
> >        exit();
> >      }
> >      if (!mysql_select_db("marimas",$link))
> >     {
> >          echo "error selecionando base de datos.";
> >          exit();
> >     }
> >
> >
> >     return $link;
> >
> >   }
> >
> >  $link=conectarse();
> >  echo "conexion a la base de datos conseguida.";
> >
> >  mysql_close($link); // cierra la conexion
> > ?>
> > </body>
> > </html>
> >
> > cuando lo cargo me da el siguiente error:
> > Parse error: parse error, unexpected T_FUNCTION in
> > /var/www/conexion.php on line 5
> >
> > 4 ojos ven mejor que dos.
> >
> > gracias anticipadas
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-user-spanish-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 
--
Rodolfo Alcazar - rodolfo.alcazar@padep.org.bo
Netzmanager Padep, GTZ
591-70656800, -22417628, LA PAZ, BOLIVIA
http://otbits.blogspot.com
--
The probability of a hardware failure disappearing is inversely
proportional to the distance between the computer and the customer
engineer.





Reply to: