phpist

Untitled

Oct 18th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. Ошибкпи как исправитьNotice: Undefined variable: bookи Warning: Invalid argument supplied for foreach()
  2.  
  3.  
  4. <table width="100%">
  5. <?php foreach ($book as $entry) { extract($entry, EXTR_OVERWRITE)?>
  6. <tr>
  7. <td>Имя: <?=$name?></td> <!-- вместо $entry['name'] -->
  8. <td>Адрес: <?=$url?></td> <!-- вместо $entry['url'] -->
  9. </tr>
  10. <tr><td colspan="3"><?=$text?></td></tr>
  11. <tr><td colspan="3"><hr /></td></tr>
  12. <? } ?>
  13. </table>
  14.  
  15. ! ) Notice: Undefined variable: book in /var/www/php.xxx/1/funcarr/sort1.php on line 2
  16. Call Stack
  17. #
  18. Time
  19. Memory
  20. Function
  21. Location
  22. 1
  23. 0.0005
  24. 393520
  25. {main}( )
  26. .../sort1.php:0
  27.  
  28. ( ! ) Warning: Invalid argument supplied for foreach() in /var/www/php.xxx/1/funcarr/sort1.php on line 2
  29. Call Stack
  30. #
  31. Time
  32. Memory
  33. Function
  34. Location
  35. 1
  36. 0.0005
  37. 393520
  38. {main}( )
  39. .../sort1.php:0
Advertisement
Add Comment
Please, Sign In to add comment