源代码:
<?php
session_start();
$author=(string)$_SESSION['user'];
$xuhao=(string)$_POST[xuhao];
$content=(string)$_POST[content];
$url=(string)$_POST[url];
$time==date("Y-m-d H:i:s");
include_once'../conn.php';
$sql=mysql_query("insert into download(xuhao,content,url,author,time) values ('$xuhao','$content','$url','$author','$time')");
mysql_free_result($sql);
mysql_close($conn);
?>
数据库信息:
谢谢各位高手指点!