惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
C
Cisco Blogs
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Scott Helme
Scott Helme
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
M
MIT News - Artificial intelligence
L
LINUX DO - 热门话题
I
InfoQ
GbyAI
GbyAI
NISL@THU
NISL@THU
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Engineering at Meta
Engineering at Meta
H
Hackread – Cybersecurity News, Data Breaches, AI and More
TaoSecurity Blog
TaoSecurity Blog
Simon Willison's Weblog
Simon Willison's Weblog
A
About on SuperTechFans
Spread Privacy
Spread Privacy
月光博客
月光博客
W
WeLiveSecurity
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
有赞技术团队
有赞技术团队
Security Latest
Security Latest
人人都是产品经理
人人都是产品经理
PCI Perspectives
PCI Perspectives
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
T
Troy Hunt's Blog
Martin Fowler
Martin Fowler
The Hacker News
The Hacker News
T
Tor Project blog
C
CERT Recently Published Vulnerability Notes
Apple Machine Learning Research
Apple Machine Learning Research
Stack Overflow Blog
Stack Overflow Blog
K
Kaspersky official blog
Cloudbric
Cloudbric
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
D
DataBreaches.Net
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Tenable Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - Franky
L
LINUX DO - 最新话题
MyScale Blog
MyScale Blog

博客园 - 超少

safe命令 cisco asa 5510 能不能接两条外线? 图像压缩原理 安装jdk配置环境变量并测试 excel导入导出的问题:检索 COM 类工厂中 CLSID 为{00024500-0000-0000-C000-000000000046} 的组件时失败,原因是出现以下错误: 80070005 - 超少 HTTP 错误 500.19 - Internal Server Error 先装了.net然后再装的iis 第一次弄css架构 星星弄下的js特效,很好看,但是很慢。 - 超少 - 博客园 asp问题,谁还知道其他解决方法?Jet 数据库引擎打不开文件'(未知的)' 赢在中国 五魁聚首 第一集 ——吴志祥 观后感 百度词条:工作流(Work Flow) ASP与ASP.NET的区别 交出20分钟后就得到面试通知的一份答卷 日语拗音学习【5.21】 人际关系宝典系列:7招巧妙批评别人 人生40宝典 有效沟通的15个窍门 失败人士的八个行为习惯 日语50音学习网址
最简单的一个连接数据库的小程序 - 超少 - 博客园
超少 · 2008-07-10 · via 博客园 - 超少

php+mysql

<form action="" method="post">
    <table class="opt">
     <tr>
      <th colspan="2">新闻标题:</th>
     </tr>
     <tr>
      <td><input type="text" class="txt" style="width: 500px" name="title" /></td>
      <td></td>
     </tr>
     <tr>
      <th colspan="2">新闻内容:</th>
     </tr>
     <tr>
      <td><textarea class="area" style="width: 600px;height: 100px" name="content"></textarea></td>
      <td valign="top"></td>
     </tr>
    
     
    </table>
    <div class="opt"><input type="submit" name="submit" value=" 发 布 " class="btn" tabindex="3" /></div>
   </form>
           
           
           
           
            <?php

$conn=mysql_connect ("localhost", "root", "数据库密码");
mysql_select_db("newstest");
$exec="insert into newstable(newsTitle,newsContent) values('".$_POST[title]."','".$_POST[content]."')";

mysql_query("set character set gb2312");
$result=mysql_query($exec);
echo "<font color=red size=12px>添加新闻成功!</font>";

?>