![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/04/2008, 10:55
|
![Avatar de agressor](http://static.forosdelweb.com/customavatars/avatar203215_1.gif) | | | Fecha de Ingreso: noviembre-2007 Ubicación: Knocking the Death Door..
Mensajes: 368
Antigüedad: 17 años, 2 meses Puntos: 3 | |
Re: Error de PARSER Pues mira a mi ya me funciono aqui te mando los 2 archivos espero te funciones..!!
include "base.php";
$usuarios = 'CREATE TABLE usuarios (
id bigint(7) NOT NULL auto_increment,
nombre char(255) default NULL,
password char(100) NOT NULL,
email char(100) default NULL,
KEY id (id))';
$noticias = 'CREATE TABLE noticias(
registro integer primary key auto_increment,
titulo varchar(50),
contenido blob)';
if (mysql_query($usuarios))
{
echo 'Se creó la tabla de usuario<br>';
}
else
{
echo 'Error en la table usuarios. ¡Observa la sintaxis! <br>';
}
if (mysql_query($noticias))
{
echo 'Se creó la tabla de noticias<br>';
}
else
{
echo 'Error en la tabla noticias. ¡Observa la sintaxis! <br>';
}
?>
<?
$conexion = mysql_connect('localhost','root','password','prueb a');
mysql_select_db('prueba', $conexion);
if (!mysql_select_db('prueba')) {
exit('<p>Unable to locate the joke ' .
'database at this time.</p>');
}
?>
A mi me funciono sin ningun problema pero te faltaba la funcion mysql_query($usuario) y noticias..
Espero te funcione..!
Salu2..!!
__________________ Somos lo que nosotros queremos ni mas ni menos..
No hay dia mas perdido que aquel en que no hemos reido..
La vida es tal y como debe ser...
Nadie vivira por ti... |