Start learning
Image 1

Php Topics

🕵

Pointearned 0

Followers 2
  • Topic: php -->> 3 months ago

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given

I'm getting a 'Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result' error. How do I fix it? The error occurs in the following code: <?php $result = mysqli_query($conn, "SELECT * FROM table"); while ($row = mysqli_fetch_assoc($result)) { } ?>
Join
🧑‍🎓

Pointearned 0

Followers 0
  • Topic: php -->> 3 months ago

Fatal error: Allowed memory size exhausted

Why do I get a 'Fatal error: Allowed memory size exhausted' error? The error occurs in the following code: <?php $array = range(1, 1000000); ?>
Join
👮

Pointearned 0

Followers 0
  • Topic: php -->> 3 months ago

Warning: Division by zero

My code is giving me a 'Warning: Division by zero' message. How can I fix it? The error occurs in the following code: <?php $result = 10 / $divisor; ?>
Join
🤵

Pointearned 0

Followers 0
  • Topic: php -->> 3 months ago

Fatal error: Maximum execution time exceeded

What should I do when I encounter a 'Fatal error: Maximum execution time exceeded' error? The error occurs in the following code: <?php while(true) { } ?>
Join
🙉

Pointearned 0

Followers 0
  • Topic: php -->> 3 months ago

Notice: Undefined variable

I keep getting a 'Notice: Undefined variable' message. How do I resolve this? The error occurs in the following code: <?php echo $variable; ?>
Join
😋

Pointearned 0

Followers 0
  • Topic: php -->> 3 months ago

Fatal error: Cannot redeclare function_name()

Why am I getting a 'Fatal error: Cannot redeclare function_name()' error? The error occurs in the following code: <?php function function_name() { } function_name(); ?>
Join
👳

Pointearned 0

Followers 0
  • Topic: php -->> 3 months ago

Parse error: syntax error, unexpected ...

My code is throwing a 'Parse error: syntax error, unexpected ...' message. The error occurs in the following code: <?php echo "Hello world" ?>. How can I fix this?
Join
🤴

Pointearned 0

Followers 0
  • Topic: php -->> 3 months ago

Fatal error: Call to undefined function

I'm getting a 'Fatal error: Call to undefined function' error when trying to use a function. The error occurs in the following code: <?php functionName(); ?>. What should I do?
Join