Jump to content
xisto Community
Sign in to follow this  
Ahsaniqbalkmc

Stylesheet Not Working For Pages Containing ? In Url

Recommended Posts

I have set up a test environment to improve my php and mysql skills and learn some advanced functions to use on my website. Lately I ran into a strange problem on my local host. When I use urls like

"localhost/mybooks/page.php/?page=pharmacology",
the stylesheet won't work. When I remove the "?page=pharmacology" part, the stylesheet does work fine. I have no idea what is happening here as it has never happened before. I have tried to find some help related to this issue but couldn't find a single entry.

The project I am working on is a test project where basically I will create a CMS with CRUD capabilities. The database I am using is Mysql and the server is Apache. On the page, I am trying to dynamically generate urls based on entries in the database. For instance, I have a table named "subjects" in my database with three entries: "pharmacology, pathology and forensics". On the index page of the website, I dynamically generated a list of links with anchors same as the entries in the "name" column of the "subjects" table. And the href attribute of the links is created dynamically to be "page.php/?page=corresponding_entry".
I am unable to find the error that is causing the problem so I guess some experts on the forum will help me on this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.