如何制作新的画廊专辑? (PHP)

时间:2013-12-31 07:12:35

标签: php gallery

我是 - 作为新手 - 试图在我的画廊页面添加相册。应该更改或添加哪些代码和哪些代码?

  

https://www.dropbox.com/s/jfovci6l1she3es/func.php

THX !!

2 个答案:

答案 0 :(得分:0)

您要求我们开发您的应用程序,我们不生成任何代码,我们会帮助您处理您的方法。 你会在网上找到很多教程,juste谷歌吧。例如http://www.w3schools.com/php/

我建议您使用数据库,因为您的代码不可重复使用,这是不切实际的。

答案 1 :(得分:0)

您应该在下次将代码发布在此处

快速查看代码可以让我了解该库是由以下代码填充的:

$gl_type    =   Array("","1","2","3","4"); // change type here
$glm_name   =   Array("","14 November '2013","23 November '2013","15 December '2013","29 December '2013"); // modify name here **respectively**

$gl_date    =   Array("","2013","2013","2013"); // modify date here **respectively**
$gl_pic     =   Array("","2013-12-13_001_1024x768.jpg","2013-12-13_001_1024x768.jpg","2013-12-13_001_1024x768.jpg"); // modify images here **respectively**

此外,您似乎可以沿此行修改相册:

switch($i){
    case "1":
        gl_pic     =   Array("","2013-12-13_001_1024x768.jpg","2013-12-13_002_1024x768.jpg","2013-12-13_003_1024x768.jpg","2013-12-13_004_1024x768.jpg","2013-12-13_005_1024x768.jpg","2013-12-13_006_1024x768.jpg","2013-12-13_007_1024x768.jpg","2013-12-13_008_1024x768.jpg");
        break;

    case "2":
        $gl_pic     =   Array("","2013-12-13_001_1024x768.jpg","2013-12-13_002_1024x768.jpg","2013-12-13_003_1024x768.jpg","2013-12-13_004_1024x768.jpg");
        break;

    case "3":
        $gl_pic     =   Array("","2013-12-13_001_1024x768.jpg","2013-12-13_002_1024x768.jpg","2013-12-13_003_1024x768.jpg","2013-12-13_004_1024x768.jpg","2013-12-13_005_1024x768.jpg","2013-12-13_006_1024x768.jpg","2013-12-13_007_1024x768.jpg","2013-12-13_008_1024x768.jpg","2013-12-13_009_1024x768.jpg","2013-12-13_010_1024x768.jpg","2013-12-13_011_1024x768.jpg","2013-12-13_012_1024x768.jpg","2013-12-13_013_1024x768.jpg");
        break;

    case "4":
        $gl_pic     =   Array("","2013-12-13_001_1024x768.jpg","2013-12-13_002_1024x768.jpg","2013-12-13_003_1024x768.jpg","2013-12-13_004_1024x768.jpg","2013-12-13_005_1024x768.jpg","2013-12-13_006_1024x768.jpg","2013-12-13_007_1024x768.jpg","2013-12-13_008_1024x768.jpg");
        break;

    default:
        $gl_pic     =   Array("","2013-12-13_001_1024x768.jpg","2013-12-13_002_1024x768.jpg","2013-12-13_003_1024x768.jpg","2013-12-13_004_1024x768.jpg","2013-12-13_005_1024x768.jpg","2013-12-13_006_1024x768.jpg","2013-12-13_007_1024x768.jpg","2013-12-13_008_1024x768.jpg");
    break;
}

去看看剩下的......