switch query (or may be I have done something wrong)
| From: | caspar kennerale | Date: | Sun, 27 Apr 2003 12:03:19 +0000 |
| Subject: | switch query (or may be I have done something wrong) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-145409@lists.php.net to get a copy of this message | ||
I recently updated to PHP 4.3.1 on my windows maching running at home
Previously I had a composite installation of apache/ PHP/ MySQL. I updated
the PHP and ppmyadmin for this and all seems (seemed) fine.
I recently tried to install a simple CMS I had written over a year ago
(which has worked on several different servers).
Different pages are called via a switch for example
http://localhost/admin/admin.php?action=add_default
admin.php being a file whoch contains the switches like this
<?php
switch($action) {
case "add_default":
html_header();
add_title();
html_admin_navigation();
insert_record();
insert_form();
html_footer();
break;
case "
default":
html_header();
add_title();
html_admin_navigation();
insert_form();
html_footer();
break;
}
?>
The problem is that whenever I request any of the swtiches (there are 10 of
them) the page only returns the default.
Does any one have any ideas why this might be the case?
If there an issue with the set up of php?
Thanks
Caspar Kennerdale