Submit a message after the template is always displayed click to download the saved page
The code is as follows
HTML section
<title>Input</title>
The PHP section
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 '. ' Liuyan ' (' 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-equipped.
!--? Echo phpinfo ();?-->
See what appears.
------Solution--------------------
in all likelihood your PHP has not been configured successfully!
------Solution--------------------
Apache configuration file less
AddType application/x-httpd-php. PHP
------ Solution--------------------
Find/-name httpd.conf
to find a file
typically in a directory under/usr/local/
for EXAMPLE/USR /local/apache
and so on.