Including BBCode

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Post by William »

Code: Select all

<?php 
if( $name == "The Hidden Viper" ) { 
$<span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> =  "true"; 
} else { 
echo "there is no else if, if the name fits the shoe"; 
} 
?>
If you are going to insault me please do it correctly :lol:

When you are making a varible a value it's only 1 = sign. Parse error! And only use the elseif like an id statement. Not as else :lol:
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

wow this topic went wayyyyyyyy off topic, viper I was just messing.. I know how to code simple php...

I think the mods should just delete this post
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

either that or we get back on topic! Dale, u tested that code yet?
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Post by William »

Ya. back on topic. I go and wait for Illusionest to MSN me another link to it :lol:
Post Reply