I am trying to produce a piece of code which can be included into a system which will decide the user's colour scheme from the user's account information. I have also far configured the database which the user information runs off so that it has a style column, which has a boolean answer either 0 (which is style.css) or 1 (which is style1.css) What would be the easiest way of achieving this?

So, you're just trying to include a CSS file if that boolean is true, else include a different file, correct? Depending on what you're programming in, you'll just do something simple (within <head>) like so:

<if [yourBoolean] = true>
<link rel="stylesheet" href="style1.css" type="text/css" />
<else>
<link rel="stylesheet" href="style.css" type="text/css" />
</if>

Replace the above with your appropriate syntax of course. Is this what you mean?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.