Scrypte:
This explanation may better suit you. Roller, that's a good explanation too. Anyway...
When you write code in PHP there are two forms of quotes. You can use the double quotes ("") or single quotes (''). Basically, what this tells the PHP parser is that what is in between them is to be taken and just printed to the browser. So each pair of quotes opens and closes a chunk of code.
If you open with double quotes, it is normally good practice to use all single quotes within them, and vice versa. It's all up to your coding practices and how you want your code to look.
Now, if you choose to stick with just the one quote style, you need to escape from PHP and tell the parser you want the quote, and you're not marking the ending/beginning of anything. The escape character in PHP is a backslash (). So by preceding any reserved character with a backslash, you can use it as a literal. Here are a few examples:
<?php // used to start syntax highlighting
$variable = 'Some string';
$variable = "Some string";
// Both are viewed as the same in PHP
$variable = "Something's wrong";
// Will ouput: Something's wrong
$variable = 'Something's wrong';
// Will error: No end to line.
// Expecting , or ;
$variable = 'Something\'s wrong';
// Will output: Something's wrong
?>
I hope that makes more sense. What I like to do is use single quotes around things that I know will not need PHP parsing (i.e. won't contain variables) and like to use double quotes for things that will contain variables. This way, when I read over my code, I can say: Oh, I have a variable coming somewhere in this string.
You can read up on strings and such on PHP.net, but these explanations should be sufficient.
@Rollerblade:
You have an error in your code, I'll repost what it should* be (just caught a mistake):
echo "
<div style=\"margin: 7px; padding-left: 2px; padding-top: 2px; padding-bottom: 2px; padding-right: 0px; background: #0C0C0C;\" onMouseOver=\"this.style.backgroundColor='#303030'; this.style.cursor='hand';\" onMouseOut=\"this.style.backgroundColor='#0C0C0C';\" onClick=\"window.location.href='tutorials.php?ID=$tut3[ID]'\">
<font face=\"verdana\" size=\"1\" color=\"#d0d0d0\">
<font size=\"1\" color=\"#EFF0E0\"><b>$tut3[title]
</font size color></b> -
<font size=\"1\" color=\"white\"><b>$tut3[program]</b></font size color>
</div>
";
~Brett