Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-29-2009, 12:46 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 31,922
Arianna will become famous soon enough
Default Converting the Templates to PHP?

I want to convert my templates to PHP, for a feature that I'm making. You see, the theme url is 'blue.php', and it has a few things which are PHP in it.
What, you ask? Well, this is the code in between the head tags:
PHP Code:
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>:BROWSERTITLE:</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<?php
$sql 
"SELECT * FROM ".$prefix."users WHERE username='".$loggedinname."'";
$result mysql_query($sql);        
$myrow mysql_fetch_array($result);
$stylesheet $myrow['style'];
?>
<link rel="stylesheet" media="screen" type="text/css" href="templates/blue/default.css" title="default" />
</head>
I have this working on another site of mine, but the system doesn't seem to be able to read the actual php file - the css link is shown as:
Code:
templates/blue/blue.php<?php echo $stylesheet ?>.css
This is instead of it echoing the variable. What am I doing wrong?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Rodent/Rat Templates AlexC Art Gallery 0 04-12-2011 01:24 PM
Converting a layout? Rozel Questions and Supports 1 03-29-2011 10:28 PM
Templates CrystalShards Suggestions and Feature Requests 1 07-18-2009 12:48 PM
Templates Built in Techdude7 Suggestions and Feature Requests 1 04-01-2009 04:28 PM
templates aroymart Questions and Supports 15 02-18-2009 01:46 PM


All times are GMT -5. The time now is 12:58 AM.

Currently Active Users: 5312 (0 members and 5312 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636