After submitting a message submission template, the following html code is displayed: & lt; head & gt; & lt; meta & nbsp; http-equiv & quot; content-Type & quot; & nbsp; content & quot; texthtml; & nbsp; charsetgb2312 & quot; & nbsp; a message submission template is displayed on the download and save page.
The code is as follows:
Html section
Input
Php
Echo $ name .'
';
Echo $ sex .'
';
Echo $ email .'
';
Echo $ infor .'
';
$ Mysql_server_name = "localhost ";
$ Mysql_username = "******";
$ Mysql_password = "******";
$ Mysql_database = "******";
$ Conn = mysql_connect ($ mysql_server_name, $ mysql_username, $ mysql_password );
$ SQL = "INSERT INTO 'leaoon '. 'liuany' ('id', 'name', 'sex', 'Email ', 'infor', 'IP', 'Time _ at') VALUES (NULL, '$ name',' $ sex ',' $ email ',' $ infor ','');";
$ Result = mysql_db_query ($ mysql_database, $ SQL, $ conn );
$ Row = mysql_fetch_row ($ result );
Print_r ($ row );
Myaql_free_result ($ result );
?>
------ Solution --------------------
It seems that php is not well configured.
See what appears.
------ Solution --------------------
In, your PHP was not configured successfully!
------ Solution --------------------
The apache configuration file contains only one sentence.
AddType application/x-httpd-php. php
------ Solution --------------------
Find/-name httpd. conf
Find a file
Usually a directory under/usr/local/
For example/usr/local/apache
And so on.