RE: [PHP] php, mysql & stylesheets[Scanned]

From: Date: Thu, 15 May 2003 09:13:28 +0000
Subject: RE: [PHP] php, mysql & stylesheets[Scanned]
Groups: php.general 
Request: Send a blank email to php-general+get-147675@lists.php.net to get a copy of this message
Kalle, The problem probably lies in the reference to the directory in which the sylesheet is stored. This should be relative to the page being displayed rather than the directory in which the script calling the stylesheet is located. In many PHP applications the page displayed will include a variable for the relative directory which is set in that page and carried over to the other scripts, e.g. $rel_dir = '../'; This can get over some of the confusion that occurs where you have scripts in other directories. HTH, Michael Egan -----Original Message----- From: Kalle Saarinen [mailto:kalles@acte.fi] Sent: 15 May 2003 09:32 To: php-general@lists.php.net Subject: [PHP] php, mysql & stylesheets[Scanned] 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"> </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. Thank You Kalle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#147675) next »