0

I tried to connect the form to the website but after I click the submit button there is an error which is this.

Fatal error: Uncaught Error: Call to undefined function mysql_fetch_object() in C:\xampp\xampp\htdocs

the error message said that the error come from this line of code:

while($row = mysql_fetch_object($result)){ 

can someone help me and please explain why this kind of error happens

Shadow
  • 32,277
  • 10
  • 49
  • 61
  • @MeesEgberts What makes you think that? The error clearly states that the function `mysql_fetch_object` is not defined. Which is not surprising since it has been removed since PHP 7. – Ivar Aug 13 '20 at 07:25
  • Could this simply be a typo, since you tagged mysqli, bu the error message relates to mysql_fetch_object without the i. – Shadow Aug 13 '20 at 07:49

1 Answers1

-2

we need know what the $result is, sometime missing spell and wrong write code that make an error usually i use mysqli_fetch_assoc and mysqli_fetch_array, because the mysql has been removed in PHP ver7

ilham suryoko
  • 66
  • 1
  • 1
  • 9