Forum - PHP
- errore query sql
alex1995 (Normal User)
Expert
Messaggi: 294
Iscritto: 27/01/2011
salve, ho un problema con questo sorgente:
Codice sorgente - presumibilmente Php
<?php
require_once ( 'config.php' ) ;
$databaseConnection = mysqli_connect ( DBHOST
, DBUSERNAME
, DBPASSWORD
, DBNAME
) ;
if ( ! $databaseConnection )
{
}
torrentid MEDIUMINT NOT NULL AUTO_INCREMENT,
torrenthash text NOT NULL,
torrenttitle text NOT NULL,
torrentdescription text NOT NULL,
PRIMARY KEY (torrentid)
?>
mi da quest errore
Codice sorgente - presumibilmente PHP
Parse error: syntax error, unexpected ',' , expecting ')' in C: \xampp\htdocs\query. php on line 18
ma se inserisco la query in phpmyadmin funziona come mai?
Goblin (Member )
Expert
Messaggi: 375
Iscritto: 02/02/2011
Postato originariamente da alex1995 :
salve, ho un problema con questo sorgente:
Codice sorgente - presumibilmente Php
<?php
require_once ( 'config.php' ) ;
$databaseConnection = mysqli_connect ( DBHOST
, DBUSERNAME
, DBPASSWORD
, DBNAME
) ;
if ( ! $databaseConnection )
{
}
torrentid MEDIUMINT NOT NULL AUTO_INCREMENT,
torrenthash text NOT NULL,
torrenttitle text NOT NULL,
torrentdescription text NOT NULL,
PRIMARY KEY (torrentid)
?>
mi da quest errore
Codice sorgente - presumibilmente PHP
Parse error: syntax error, unexpected ',' , expecting ')' in C: \xampp\htdocs\query. php on line 18
ma se inserisco la query in phpmyadmin funziona come mai?
bha forse dico una cavolata ... ma io conto una parentesi chiusa ")" di troppo proprio alla linea 18 ... infatti anche l'errore lo dice
G.
Ibis redibis non morieris in bello