while upgrading your code to meet the new update standards, after replacing all the deprecated functions you will encounter some that are discontinued here is how you can replace it
the solution is to create a alternative function to replace it, you can give it the same name but it is recommended to give it a new name or add a extra flag "_" to the name
for a example the funtion "mysqli_result" is discontinued and here the solution fro that
1- create a methud:
function mysqli_result_c($result,$row,$field) {
if($result->num_rows==0) return 'unknown';
$result->data_seek($row);
$ceva=$result->fetch_assoc();
$rasp=$ceva[$field];
return $rasp;
}
2- edit your code:
replacing all "mysqli_result" with "mysqli_result"
done.
Comments
Post a Comment