This commit is contained in:
Regis Houssin 2006-05-19 15:26:22 +00:00
parent 5c2bd02519
commit 316dafdc95

View File

@ -138,7 +138,7 @@ if ($_GET["action"] == 'create')
$numpr = "FI".strftime("%y%m%d", time());
$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."propal";
$sql.= " WHERE ref like ".$numpr."%";
$sql.= " WHERE ref like '${numpr}%'";
$resql=$db->query($sql);
if ($resql)