ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

The page in question lists events that can be edited. This code is supposed to show the current page minus the deleted event. It does so by getting the YEAR and MONTH that was posted to the page from the previous page. Say I'm looking at Sept 2004, then delete an event. Once I delete an event it should go back to the listing for Sept 2004 with the updated list. Instead the $_GET ALWAYS grabs November 2003! This make no sense to me. Why would it always grab this date even though my server date is correct and it is not specifically assigned this date anywhere? Any ideas? The month and year are posted when the month to edit is chosen so it should be correct.

I'm not sure what your level of understanding is, so I am going to post this as if you knew less than I do.

Can you see what the URL is when this script is called. Because of the way that GET variables work, you can see both their names and values in the URL itself.

I am guessing the URL is something like "<scriptname>.php?month=9&year=2003&delete=<some number>"
or "<scriptname>.php?month=november&year=2003&delete=<some number>"

This URL is generated by the script that refers to the script that you pulled the code from.

What I would suggest doing is looking to the script before for the error. I am not sure whow each day in the calendar is listed on, but I would imagine each one has it's own events with a link to delete... Correct? Look at where that link is created and I bet you will find "November" "2003" hardcoded in. If you don't and you actually do find a variables there, I would follow those variables back to where they are given their value.

Hope this helps... Good luck. (Oh and sorry if my spelling or grammar is lame... I'm still working on this "english" thing)