日期:2011-11-22 浏览次数:20569 次
PHP上传二进制形式图片到数据库中,如下代码:
- <?php
- session_start();
- include("conn.php");?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>以二进制形式上传图片到数据库 - www.cxybl.com</title>
- <style type="text/css">
- <!--
- body {
- margin-left: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- }
- .style1 {font-size: 12px}
- -->
- </style></head>
- <body>
- <table width="355" height="222" border="0" align="center" cellpadding="0" cellspacing="0">
- <form action="index_ok.php" method="post" enctype="multipart/form-data" name