Skip to content
Snippets Groups Projects
Commit 6a488b8e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Standard SQL

parent fc48d188
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
// D'abord on recupere la valeur max (reponse immediate car champ indexe)
$posindice=8;
$sql = "SELECT MAX(SUBSTRING(".$field.",".$posindice.")) as max";
$sql = "SELECT MAX(SUBSTRING(".$field." FROM ".$posindice.")) as max"; // This is standard SQL
$sql.= " FROM ".MAIN_DB_PREFIX."societe";
$sql.= " WHERE ".$field." LIKE '".$prefix."____-%'";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment