Scusate il disturbo, qlkn mi può aiutare?
Cerco di eseguire qst query ma mi restituisce un errore di sintassi ke nn riesco a vedere.
$sql = "SELECT SQL_CALC_FOUND_ROWS ".
"f.id, f.no, f.v, f.n, f.c, " .
"f.ci, f.ns, f.des, t.tipol " .
"FROM fprincipale f " .
"LEFT JOIN tipologia t " .
"ON f.prov_id=$p AND f.tipologia_id=$t " .
"ORDER BY f.id " .
"LIMIT $start,$limit";
Quando la eseguo restituisce:
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 'AND f.tipologia_id= ORDER BY f.id LIMIT ,' at line 1
Un errore di sintassi vero? ma nn capisco dove sbaglio. Grazie a tutti.