We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
CSS and PHP
lenora
Posts: 60 Forumite
in Techie Stuff
I am in the process of designing a new site which I plan to code in PHP with a mySQL database attached. I have been trying to think about what I want it to look like and I know I will be using a style sheet for it but I wondered if it is possibe to use the style sheet to format the results of queries that I make to my database
thanks
thanks
0
Comments
-
Yeah you can. You should try to use CSS as much as possible. It separates much of the UI (or look and feel) from the codebase.
You'll need to do some reading (googling) into it, but you can style all of the output. You should be able to get to a point where by you can change the whole look, colour, position etc... of your site just by changing the style sheet. You can also then start to do slightly more funky stuff such as dynamic stylesheets, or giving the user the option to pick the "look" they like."Boonowa tweepi, ha, ha."0 -
Using XML is a good bet for styling results from a database.
Do a search on XML and XSL Stylesheets
[FONT=Arial, Helvetica, sans-serif]"The internet is a great way to get on the net."
- Bob Dole, Republican presidential candidate[/FONT]0 -
You'd need to convert the query into Xml which is another step, and further complexity in itself.
Handy if you need to share the data between other applications though, very much a service orientated way of doing things. Worth reading about SOAP, something like:
http://devzone.zend.com/node/view/id/689"Boonowa tweepi, ha, ha."0 -
thanks a lot everyone I will look into it0
-
0
-
Yup I can recommend that site too! Helped me through my PHP/CSS/XML module at uni
[FONT=Arial, Helvetica, sans-serif]"The internet is a great way to get on the net."
- Bob Dole, Republican presidential candidate[/FONT]0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.5K Banking & Borrowing
- 254.1K Reduce Debt & Boost Income
- 455K Spending & Discounts
- 246.6K Work, Benefits & Business
- 602.9K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.6K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards