Stack Overflow en español Asked by deathgran2013 on January 1, 2022
Hola buenos días estoy teniendo problemas con la version 7.4 en esta consulta que realizo
$consult = $mysqli->query("SELECT name FROM status WHERE id = '$oldstatus' ");
$register = $consult->fetch_assoc();
$oldstatus = $register['name'];
Buen día, para evitar este tipo de error, tiene que agregar una condición de isset para validar que exista la variable.
$consult = $mysqli->query("SELECT name FROM status WHERE id = '$oldstatus' ");
$register = $consult->fetch_assoc();
if(isset($register['name'])){
$oldstatus = $register['name'];
}
Answered by Ervin Santos on January 1, 2022
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP