#1  
Old 08-21-2005, 07:20 PM
Photics's Avatar
Photics Photics is offline
Webmaster
 
Join Date: May 2005
Location: Staten Island, NY
Posts: 3,284
Blog Entries: 74
Photics is on a distinguished road
Default

How do I put this in a PHP script without screwing everything up?

Code:
<style fprolloverstyle>A:hover {text-transform: uppercase; font-weight: bold}</style>
The line it's supposed go into is this one...

Code:
print "</head><body>";
...just after the first quotation mark.

But whenever I use a Left Curly Bracket

wait a minute...

I think I figured it out...

I'll let you know if it works. :)
__________________
Michael Garofalo
Webmaster - http://photics.com
Reply With Quote
  #2  
Old 08-21-2005, 07:42 PM
Photics's Avatar
Photics Photics is offline
Webmaster
 
Join Date: May 2005
Location: Staten Island, NY
Posts: 3,284
Blog Entries: 74
Photics is on a distinguished road
Default

Nope... didn't work... it just laughed at me.

I tried calling the Left & Right Curly Brackets by their ASCII code...

...but it just pointed at me and laughed. HA HA HA HA HA... PHPNOOB! :lol:

Heh... and here's what's funny... I wanted to put the ASCII code here, but it translated it into a curly bracket :P
__________________
Michael Garofalo
Webmaster - http://photics.com
Reply With Quote
  #3  
Old 08-21-2005, 10:41 PM
Jizato's Avatar
Jizato Jizato is offline
Knight
 
Join Date: May 2005
Posts: 290
Jizato is on a distinguished road
Default

I'm not sure, but check out http://www.w3schools.com/php/default.asp . that may be some help.
Reply With Quote
  #4  
Old 08-22-2005, 11:05 AM
Photics's Avatar
Photics Photics is offline
Webmaster
 
Join Date: May 2005
Location: Staten Island, NY
Posts: 3,284
Blog Entries: 74
Photics is on a distinguished road
Default

Nope... that didn't help me. There sure were a lot of ads though. :D
__________________
Michael Garofalo
Webmaster - http://photics.com
Reply With Quote
  #5  
Old 08-22-2005, 04:18 PM
Opshn Opshn is offline
Knight
 
Join Date: Jul 2005
Posts: 117
Opshn is on a distinguished road
Default

Quote:
Originally Posted by Photics
How do I put this in a PHP script without screwing everything up?

Code:
<style fprolloverstyle>A:hover {text-transform: uppercase; font-weight: bold}</style>
The line it's supposed go into is this one...
What kind of result are you getting? ie "page not found" or blank window or what? Are you actually having an html issue or a php issue? Sad but I know more about php than html. Not that I know much about php either.

I am not exactly clear on what the problem is but perhaps instead of putting your html header info after <?php or just <? whatever your using just put your header information before your php code.

Code:
{junk before php code}

<?php
{junk in php code}
?>

{more junk not in the php code section}
Reply With Quote
  #6  
Old 08-22-2005, 05:04 PM
Nemisari's Avatar
Nemisari Nemisari is online now
Knight
 
Join Date: May 2005
Posts: 537
Nemisari is on a distinguished road
Send a message via AIM to Nemisari
Default

if you type html code outside of a php tag ex:
Code:
</head>
<style type="css/text">a:hover {font-weight: bold;}</script>
<body>
<?php
My Code Goes in here;
?>
it's the same as putting it in a print command, except you don't have to wory about escape characters for quotes or curly braces ;)

for further refference, if you want to use a character that you normaly wouldn't be able to, you just put in a backslash \ in front of it

ex: \{ or \"

(I'm not 100% sure about the curly braces needing an escape character)
Reply With Quote
  #7  
Old 08-22-2005, 05:25 PM
Photics's Avatar
Photics Photics is offline
Webmaster
 
Join Date: May 2005
Location: Staten Island, NY
Posts: 3,284
Blog Entries: 74
Photics is on a distinguished road
Default

I tried putting the slash before the Brace. It just mocked me! :lol:
__________________
Michael Garofalo
Webmaster - http://photics.com
Reply With Quote
  #8  
Old 08-23-2005, 10:27 AM
Ronduwil Ronduwil is offline
Knight
 
Join Date: May 2005
Posts: 373
Ronduwil is on a distinguished road
Default

I'm not sure I understand your question, but if you're trying to write out a curly brace in HTML, I could point you at http://www.ascii.cl/htmlcodes.htm

This site lists the various html codes used to represent ASCII characters. For example, if you want to display an opening curly brace in your HTML code, use
Code:
 & # 1 2 3 ;
without the spaces. I added the spaces because the board kept displaying an opening curly brace instead of the text itself :) I hope I understood your question correctly.
Reply With Quote
  #9  
Old 08-23-2005, 10:53 AM
Photics's Avatar
Photics Photics is offline
Webmaster
 
Join Date: May 2005
Location: Staten Island, NY
Posts: 3,284
Blog Entries: 74
Photics is on a distinguished road
Default

I tried using the ASCII equivilant... it didn't work.

But here's the weird thing... I just pasted in the code and it worked... weird!

Code:
	print "<style fprolloverstyle>A:hover {text-transform: uppercase; font-weight: bold}</style></head><body>";
__________________
Michael Garofalo
Webmaster - http://photics.com
Reply With Quote
  #10  
Old 08-23-2005, 02:00 PM
Bebop
Guest
 
Posts: n/a
Default

http://www.phpfreaks.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


Portions of this website are part of the Guild Wars Fansite Program. Guild Wars is a trademark of NCsoft Corporation. All rights reserved. Arena.net, ArenaNet and the ArenaNet logo are trademarks or registered trademarks of NCsoft Corporation in the U.S. and/or other countries. The Photics.com webserver is powered by HostRocket.
All times are GMT -4. The time now is 12:09 AM.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.