日期:2011-11-22  浏览次数:20500 次

PHP上传图片并分页显示,如下代码:

  1. <?php  
  2. $id=mysql_connect('localhost','root','root'); 
  3. mysql_select_db("db_database12",$id); 
  4. mysql_query("set names gb2312"); 
  5. ?> 

index.php:

  1. <?php   
  2. session_start(); 
  3. include "conn.php";   
  4. if ($page=="")  
  5. {$page=1;}; 
  6. ?> 
  7. <html> 
  8. <head> 
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
  10. <title>上传多图片到服务器并分页显示 - www.cxybl.com</title> 
  11. <style type="text/css"> 
  12. <!-- 
  13. .style1 {font-size: 12px} 
  14. --> 
  15. </style> 
  16. </head> 
  17. <body> 
  18. <table width="450" height="259" border="0" cellpadding="0" cellspacing="0">