Copy link to clipboard
Copied
Hi, I am not a programmer, just trying to fix something on my own website and hoping someone can help.
There is a dropdown menu on my administrator tool for the year. (Just to explain, I add press credits to my website by Month/Year. I pick the Month and Year from dropdowns but it was set so that I can't go to years prior and I need to add some 2009 press.) I think I found the code for this but not sure what to change. I am pasting it below, to see if it is really a simple fix if someone can advise. I included the picture of the dropdown from my admin in case its not clear what i'm talking about.
There is tons of other code but when I click on year, the following is highlighted so I assumed that was the related code.
Please use simple instructions as I really have no experience with this!
Thank you!
</select> <select name="year"><?
for($i=date("Y");$i<2030;$i++){
echo '<option value="'.$i.'">'.$i.'</option>';
}
?>
Copy link to clipboard
Copied
jeg10011 wrote:
<select name="year"><?
for($i=date("Y");$i<2030;$i++){
echo '<option value="'.$i.'">'.$i.'</option>';
}
?>
Change this line:
for($i=date("Y");$i<2030;$i++){
to this:
for($i=2009;$i<2030;$i++){Is that explanation simple enough? ![]()
Copy link to clipboard
Copied
David, thank you for your quick and easy response.
So, I tried it and while it did change the dropdown to include 2009, something else seems to have gone wrong. (more like i did something wrong)
This is the admin screen now:

In the dreamweaver php file there is a warning that reads: Dynamically related files cannot be discovered because there is no site definition for this document. (setup link)
Is there a quick fix here or am I over my head?
Thanks!
Jill
Copy link to clipboard
Copied
That error has nothing to do with the change I told you to make.
It's very difficult to read the screenshot you have posted, but the errors are caused by the failure of the script to find a file called dbconfig.php. Looking at the error message, it appears that dbconfig.php is in Collection/painted greece. It looks as though there's a space in the "painted greece" directory (folder) name. Spaces should never be used in file and folder names for a website, particularly if it's hosted on a Linux server, as your site is.
Copy link to clipboard
Copied
jeg10011 wrote:
In the dreamweaver php file there is a warning that reads: Dynamically related files cannot be discovered because there is no site definition for this document. (setup link)
If you have simply used Dreamweaver to edit the file, and don't plan using Dreamweaver to administer the site, it doesn't really matter. However, if you're using it to edit various pages on the site, you should always define the site in Dreamweaver. Otherwise, it can't create internal links in the website.
Copy link to clipboard
Copied
It's all very confusing.
That Painted Greece file is on my computer's hard drive, and its just where I stored the old php file so if the new one with edits didn't work i could just put the old one back. The Directories for the site are not 2 words.
It seems like I have to find a local folder where the site is associated but I think that is beyond my capabilities.
But it does seem like if I use the new php and upload my 2009 press and then go back and put the old php file on the site then it all works!
Thank you so much for your help!
Jill
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more