|    
			
				25/09/2007, 11:53
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: septiembre-2007 
						Mensajes: 12
					 Antigüedad: 18 años, 1 mes Puntos: 0 |  | 
  |  Error N:1064  
  Estoy creando una tabla desde mi codigo de php y me muestra el siguiente error Error N:1064: You have an error in your SQL syntax near '; ' at line 13
 El archivo se encuentra con el nombre
 t1.sql
 
 CREATE TABLE IF NOT EXISTS dxforvir(
 n_reg integer(11)NOT NULL auto_increment,
 nom_usuario varchar(255)NOT NULL default '0',
 con_usuario varchar(255)NOT NULL default '0',
 empresa varchar(255)NOT NULL default '0',
 nom_base varchar(255)NOT NULL default '0',
 tipo integer(11)NOT NULL default '0',
 nom_usu varchar(255)NOT NULL default '0',
 app_usu varchar(255)NOT NULL default '0',
 apm_usu varchar(255)NOT NULL default '0',
 status integer(11)NOT NULL default '1',
 PRIMARY KEY(n_reg)
 );
 
 Mi codigo PHP:
 $num_ta = cuenta_archivos('../tablas/geoyos/');
 echo "Numero de archivos geoyos: ".$num_ta.'<br>';
 for($j=1;$j<=$num_ta;$j++)
 {
 $cc2[]= "../tablas/geoyos/t" . $j . ".sql";
 echo "../tablas/geoyos/t" . $j . ".sql <br>";
 }
 $n = $num_ta - 1;
 for($i=0;$i<=$n;$i++)
 {
 $archivono[]= fopen($cc2[$i] , "r");
 if ($archivono[$i])
 {
 while (!feof($archivono[$i]))
 {
 //echo fgets($archivono[$i], 1024).'<br>';
 $cre[$i].=fgets($archivono[$i],255);
 }
 echo $cre[$i].'<br>';
 $sql = mysql_query($cre[$i],$con);
 if (!$sql){
 echo 'Error N:' . mysql_errno($con) . ": " . mysql_error($con).'<br>';
 }
 echo "------------------------------------------------------<br><br><br>";
 //exit();
 }
 fclose ($archivono[$i]);
 }
 
 y no se ha que se deba de antemano muchisimas gracias por la ayuda que me puedan brindar
 
 "No conozco ninguen echo mas alentador que la incuestionable capacidad humana para dignificar su vida por medio del esfuerzo conciente"
     |