Just add a for loop, starting at 2 numbers less than the current page, and ending at 2 numbers after the current page. For each number in the loop, if the page isn't the current page, make it a link....
Unless there's a real great advantage in doing so, you shouldn't worry about it. I don't see what benefit doing that has. I would say don't worry about it. Most of the content cannot be stored into a...
Unless you re-assign it a value it's going to remain the same. If you're working in an object oriented environment and want the static variable accessible among all classes, you would precede it with...
You wouldn't be able to have a progress bar using php only. You would also have to use perl to get information on how much of the file has been uploaded.
In your include file, you need to basically have a security variable that checks if the page is being called or not. For example, add the following to your include file:
This is a bit difficult for us to debug because it's basically telling you it can't find the file/folder. Make sure your source and destination paths are correct.
1. mysql_db_query is deprecated. Use mysql_query() instead.
2. Use mysql_fetch_array as it is more documentative.
3. PHP uses periods (.) for concatenation.
The ideal solution is to place the whole thing in an include file, and include it on the pages you want to display it. Therefore, when you need to update the nav, you only update it in one place, ie:...
I've been researching some good editors/ide's lately. Can't seem to find one that does a good job with php, coldfusion, and asp.net. I thought we'd share what IDE's we work with, and some information...
How do you associate that file with that specific user if it does not store in a database? And if the user comes back 10 days later to see that file that they uploaded, how will your application...