Ciao a tutti... ho un problema nella creazione di un modulo del mio sito
Ecco il codice del modulo:
<?
include("../config.php");
error_reporting (E_ALL ^ E_NOTICE);
$query = 'Select G_Name from Guild, G_Mark from Guild, G_Master from Guild, G_Score from Guild, G_Count from Guild, Number from Guild';
$result = mssql_query($query);
$row = mssql_fetch_row($result);
?>
<table width=100% height=100% border=1>
<tr>
<td>Marchio</td>
<td>Nome</td>
<td>Guild Master</td>
<td>Score</td>
<td>Membri</td>
<td>Membri1</td>
</tr>
<tr>
<td><php echo '$row[1]'; ?></td>
<td><php echo '$row[0]'; ?></td>
<td><php echo '$row[2]'; ?></td>
<td><php echo '$row[3]'; ?></td>
<td><php echo '$row[4]'; ?></td>
<td><php echo '$row[5]'; ?></td>
</tr>
</table>
Ed ecco gli errori:
Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near the keyword 'from'. (severity 15) in C:\Apache2\htdocs\modules\guilds.php on line 5
Warning: mssql_query() [function.mssql-query]: Query failed in C:\Apache2\htdocs\modules\guilds.php on line 5
Warning: mssql_fetch_row(): supplied argument is not a valid MS SQL-result resource in C:\Apache2\htdocs\modules\guilds.php on line 6
Come posso risolvere?
Ringrazio in anticipo
Ps. Sono sicuro di non aver sbagliato nulla nella creazione della query... per questo il topic l'ho chiamato "errore di sintassi...??"