Home  >  Article  >  Backend Development  >  Solution to Fatal error that occurs when writing PHP pagination_PHP tutorial

Solution to Fatal error that occurs when writing PHP pagination_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:30:41859browse

Fatal error: Cannot redeclare htmtocode() (previously declared in D:www_localmytestconn.php:7) in D:www_localmytestconn.php on line 10

This error message appears when writing the paging file page.php

Google translated this sentence as "Fatal error: cannot redeclare htmltocode()"

The code on line 10 is



//Connect to the database

include("conn.php");
//Introduce paging class files

include("page.class.php" ; >Solution: Use include_once() instead of include



http://www.bkjia.com/PHPjc/323135.html

www.bkjia.com

true

TechArticleFatal error: Cannot redeclare htmtocode() (previously declared in D:www_localmytestconn.php:7) in D:www_localmytestconn .php on line 10 This error message appears when writing a paging file...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn