Hello,
I have a small script that retrives names from MySQL database and displays
the information on a web page.
I've tried to use stylesheet to format the output with no success. I can't
get it to read the style sheet.
link to style sheet is like this
<head>
<LINK rel="stylesheet" href="style.css" type="text/css">
<link rel="stylesheet" href="themes/sense/style/style.css" type="text/css">
Comparing our tags i can only think you either have some problem before with non-closed quotes in earlier lines (check the produced page source) or maybe your style.css file is in a subdirectory?
Did you realise that when you include something in a PHP file, the relative path is still that of the path in the URL?
Eg if you have
http://site.com/index.php
which includes
site.com/html/page1.html
which has the link
<LINK rel="stylesheet" href="style.css" type="text/css">
then the style.css fiel is looked for in site.com/style.css
and not in site.com/html/style.css
hth,
Chris
</head>
Is there something Ishoud know about dynamic web pages and stylesheets?
Cause I've been using stylesheet for quite some time now and I never had any
problems with static pages.