salve a tutti ,
se scrivo dentro Mysql
tutto funziona correttamnte ......
Result = Dicembre
Invece se lo metto dentro PHP in
ricevo ERRORE:
Notice: Trying to get property of non-object in
se scrivo dentro Mysql
Codice:
SET lc_time_names = "it_IT";
SELECT MONTHNAME('2021-12-07') AS 'Result';
Result = Dicembre
Invece se lo metto dentro PHP in
Codice:
$sql ="SET lc_time_names = 'it_IT'; SELECT MONTHNAME('2021-12-07') AS 'Result';";
$result = $connect->query($sql);
if ($result->num_rows > 0) {
..............etc....
Notice: Trying to get property of non-object in