SQL Error 1064: Errore Sintassi SQL
Salve a tutti ragazzi, ora mi affido a voi, ho un problema con il PHP e con l'SQL, quando vado in una pagina che ho modificati ho questo problema:
Citazione:
Could not obtain tutorial data
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
SELECT t.*, u.user_id, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_allowsmile FROM phpbb_tutorial_tutorials t, phpbb_users u WHERE t.tutorial_category_id = 1 AND u.user_id = t.tutorial_author_id ORDER BY
Line : 295
File : functions_tutorial.php
Mentre queste sono le linee che ho dalla linea 280 alla 296:
Codice PHP:
if ( defined( 'IN_ADMIN' ) )
{
$sql .= " ORDER BY t.tutorial_id";
}
else
{
$sql .= " ORDER BY " . $tutorial_news_sort_method_extra . $tutorial_news_sort_method . $tutorial_news_sort_par . "";
}
if ( $start > -1 && $tutorials_in_cat > 0 )
{
$sql .= " LIMIT $start, $tutorials_in_cat";
}
if ( !( $tutorial_result = $db->sql_query( $sql ) ) )
{
message_die( GENERAL_ERROR, "Could not obtain tutorial data", '', __LINE__, __FILE__, $sql );
}
ho letto su Google che dovrebbe essere un problema di " ma non capisco cosa non vada :crycry: Vi prego di aiutarmi, vi ringrazio anticipatamente!!