<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Garrett85's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/106008/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user Garrett85.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 00:03:06 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Torque for teens</title>
      <link>http://www.programmersheaven.com/mb/game/408302/408302/ReadMessage.aspx#408302</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/game/408302/408302/ReadMessage.aspx#408302"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/game/Board.aspx"&gt;Game programming&lt;/a&gt; forum.&lt;/p&gt;I got the book Torque for teens but I can't follow along with the book because it instructs me to copy the folder \example into itself and rename it to \experiment. The books says it's located in whatever directory I installed torque into and then \Torque\SDK\example&lt;br /&gt;
But I can't find it anywhere. Can someone help me please? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/game/408302/408302/ReadMessage.aspx#408302</guid>
      <pubDate>Sun, 25 Oct 2009 16:33:28 -0700</pubDate>
    </item>
    <item>
      <title>Function Variable</title>
      <link>http://www.programmersheaven.com/mb/python/404247/404247/ReadMessage.aspx#404247</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/python/404247/404247/ReadMessage.aspx#404247"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/python/Board.aspx"&gt;Python&lt;/a&gt; forum.&lt;/p&gt;In the follwoing program I am having trouble understanding this function.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
def ask_yes_no(question):
    """Ask a yes or no question."""
    response = None
    while response not in ("y", "n"):
        response = raw_input(question).lower()
    return response&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Shouldn't question be response, or response be question? I know thought question was just a variable that held that date sent to the function.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;# Tic-Tac-Toe
# Plays the game of tic-tac-toe against a human opponent
   
# global constants
X = "X"
O = "O"
EMPTY = " "
TIE = "TIE"
NUM_SQUARES = 9


def display_instruct():
    """Display game instructions."""  
    print \
    """
    Welcome to the greatest intellectual challenge of all time: Tic-Tac-Toe.  
    This will be a showdown between your human brain and my silicon processor.  

    You will make your move known by entering a number, 0 - 8.  The number 
    will correspond to the board position as illustrated:
    
                    0 | 1 | 2
                    ---------
                    3 | 4 | 5
                    ---------
                    6 | 7 | 8

    Prepare yourself, human.  The ultimate battle is about to begin. \n
    """


def ask_yes_no(question):
    """Ask a yes or no question."""
    response = None
    while response not in ("y", "n"):
        response = raw_input(question).lower()
    return response


def ask_number(question, low, high):
    """Ask for a number within a range."""
    response = None
    while response not in range(low, high):
        response = int(raw_input(question))
    return response


def pieces():
    """Determine if player or computer goes first."""
    go_first = ask_yes_no("Do you require the first move? (y/n): ")
    if go_first == "y":
        print "\nThen take the first move.  You will need it."
        human = X
        computer = O
    else:
        print "\nYour bravery will be your undoing... I will go first."
        computer = X
        human = O
    return computer, human


def new_board():
    """Create new game board."""
    board = []
    for square in range(NUM_SQUARES):
        board.append(EMPTY)
    return board


def display_board(board):
    """Display game board on screen."""
    print "\n\t", board[0], "|", board[1], "|", board[2]
    print "\t", "---------"
    print "\t", board[3], "|", board[4], "|", board[5]
    print "\t", "---------"
    print "\t", board[6], "|", board[7], "|", board[8], "\n"


def legal_moves(board):
    """Create list of legal moves."""
    moves = []
    for square in range(NUM_SQUARES):
        if board[square] == EMPTY:
            moves.append(square)
    return moves


def winner(board):
    """Determine the game winner."""
    WAYS_TO_WIN = ((0, 1, 2),
                   (3, 4, 5),
                   (6, 7, 8),
                   (0, 3, 6),
                   (1, 4, 7),
                   (2, 5, 8),
                   (0, 4, 8),
                   (2, 4, 6))
    
    for row in WAYS_TO_WIN:
        if board[row[0]] == board[row[1]] == board[row[2]] != EMPTY:
            winner = board[row[0]]
            return winner

    if EMPTY not in board:
        return TIE

    return None


def human_move(board, human):
    """Get human move."""  
    legal = legal_moves(board)
    move = None
    while move not in legal:
        move = ask_number("Where will you move? (0 - 8):", 0, NUM_SQUARES)
        if move not in legal:
            print "\nThat square is already occupied, foolish human.  Choose another.\n"
    print "Fine..."
    return move


def computer_move(board, computer, human):
    """Make computer move."""
    # make a copy to work with since function will be changing list
    board = board[:]
    # the best positions to have, in order
    BEST_MOVES = (4, 0, 2, 6, 8, 1, 3, 5, 7)

    print "I shall take square number",
    
    # if computer can win, take that move
    for move in legal_moves(board):
        board[move] = computer
        if winner(board) == computer:
            print move
            return move
        # done checking this move, undo it
        board[move] = EMPTY
    
    # if human can win, block that move
    for move in legal_moves(board):
        board[move] = human
        if winner(board) == human:
            print move
            return move
        # done checkin this move, undo it
        board[move] = EMPTY

    # since no one can win on next move, pick best open square
    for move in BEST_MOVES:
        if move in legal_moves(board):
            print move
            return move


def next_turn(turn):
    """Switch turns."""
    if turn == X:
        return O
    else:
        return X

    
def congrat_winner(the_winner, computer, human):
    """Congratulate the winner."""
    if the_winner != TIE:
        print the_winner, "won!\n" 
    else:
        print "It's a tie!\n"

    if the_winner == computer:
        print "As I predicted, human, I am triumphant once more.  \n" \
              "Proof that computers are superior to humans in all regards."

    elif the_winner == human:
        print "No, no!  It cannot be!  Somehow you tricked me, human. \n" \
              "But never again!  I, the computer, so swears it!"

    elif the_winner == TIE:
        print "You were most lucky, human, and somehow managed to tie me.  \n" \
              "Celebrate today... for this is the best you will ever achieve."


def main():
    display_instruct()
    computer, human = pieces()
    turn = X
    board = new_board()
    display_board(board)

    while not winner(board):
        if turn == human:
            move = human_move(board, human)
            board[move] = human
        else:
            move = computer_move(board, computer, human)
            board[move] = computer
        display_board(board)
        turn = next_turn(turn)

    the_winner = winner(board)
    congrat_winner(the_winner, computer, human)


# start the program
main()
raw_input("\n\nPress the enter key to quit.")&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/404247/404247/ReadMessage.aspx#404247</guid>
      <pubDate>Sat, 10 Oct 2009 09:40:00 -0700</pubDate>
    </item>
    <item>
      <title>Re: Indexing Strings</title>
      <link>http://www.programmersheaven.com/mb/python/402203/403300/ReadMessage.aspx#403300</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/python/402203/403300/ReadMessage.aspx#403300"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/python/Board.aspx"&gt;Python&lt;/a&gt; forum.&lt;/p&gt;Thanks for the help. I really appreciate it.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/402203/403300/ReadMessage.aspx#403300</guid>
      <pubDate>Thu, 08 Oct 2009 23:28:23 -0700</pubDate>
    </item>
    <item>
      <title>Indexing Strings</title>
      <link>http://www.programmersheaven.com/mb/python/402203/402203/ReadMessage.aspx#402203</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/python/402203/402203/ReadMessage.aspx#402203"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/python/Board.aspx"&gt;Python&lt;/a&gt; forum.&lt;/p&gt;In the code below, the only part I'M having trouble with is word[position]. I know this is something really simple but I've always had trouble understanding these kinds of statements. I know that it print a random letter (position) from (word). What I don't know is why or how it does that. That's the part that never seems to get explained to me. How can you just put [] around part of a statement and everything just work right? Thanks.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
# Random Access
# Demonstrates string indexing

import random

word = "index"
print "The word is: ", word, "\n"

high = len(word)
low = -len(word)

for i in range(10):
    position = random.randrange(low, high)
    print "word[", position, "]\t", word[position]

raw_input("\n\nPress the enter key to exit.")&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/402203/402203/ReadMessage.aspx#402203</guid>
      <pubDate>Mon, 05 Oct 2009 23:16:05 -0700</pubDate>
    </item>
    <item>
      <title>String Indexing</title>
      <link>http://www.programmersheaven.com/mb/python/401898/401898/ReadMessage.aspx#401898</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/python/401898/401898/ReadMessage.aspx#401898"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/python/Board.aspx"&gt;Python&lt;/a&gt; forum.&lt;/p&gt;In the code below, the only part I'M having trouble with is word[position]. I know this is something really simple but I've always had trouble understanding these kinds of statements. I know that it print a random letter (position) from (word). What I don't know is &lt;strong&gt;why&lt;/strong&gt; or &lt;strong&gt;how&lt;/strong&gt; it does that. That's the part that never seems to get explained to me. How can you just put [] around part of a statement and everything just work right? Thanks.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;# Random Access
# Demonstrates string indexing

import random

word = "index"
print "The word is: ", word, "\n"

high = len(word)
low = -len(word)

for i in range(10):
    position = random.randrange(low, high)
    print "word[", position, "]\t", word[position]

raw_input("\n\nPress the enter key to exit.")&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/401898/401898/ReadMessage.aspx#401898</guid>
      <pubDate>Sat, 03 Oct 2009 12:35:08 -0700</pubDate>
    </item>
    <item>
      <title>Python IDEL</title>
      <link>http://www.programmersheaven.com/mb/python/400503/400503/ReadMessage.aspx#400503</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/python/400503/400503/ReadMessage.aspx#400503"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/python/Board.aspx"&gt;Python&lt;/a&gt; forum.&lt;/p&gt;Hey, I've just started with python and I'M using python's IDE, IDEL, &amp;amp; Wing IDE. When I read my book on python programming it shows the programs running in a traditional DOS type of window. But neither of my IDEs run my programs in this traditional form and I would prefer that. Can someone tell me what's up and how to fix it? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/400503/400503/ReadMessage.aspx#400503</guid>
      <pubDate>Sat, 26 Sep 2009 16:37:12 -0700</pubDate>
    </item>
    <item>
      <title>Strings</title>
      <link>http://www.programmersheaven.com/mb/python/399583/399583/ReadMessage.aspx#399583</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/python/399583/399583/ReadMessage.aspx#399583"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/python/Board.aspx"&gt;Python&lt;/a&gt; forum.&lt;/p&gt;I can't find the error in the following code, can someone help me out please? I really don't like this python IDE, is there a better one I can use?&lt;br /&gt;
&lt;br /&gt;
Here is the error message I'M getting.&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File "&amp;lt;pyshell#14&amp;gt;", line 1, in -toplevel-&lt;br /&gt;
    + "\nBut what " + "you don't know," + " is that " + "it's one real" \&lt;br /&gt;
TypeError: bad operand type for unary +&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;# Silly Strings
# Demonstrates string concatenation and repetition


print "You can concatenate two " + "strings with the '+' operator." \

    + "\nBut what " + "you don't know," + " is that " + "it's one real" \
    + "l" + "y" + " long string, created from the concatenation " \
    + "of " + "thirty-two " + "different strings, broken across " \
    + "nice lines." + " Now you are" + " impressed?\n\n" + "See, " \
    + "even newlines can be embedded into a single string, making" \
    + " it look " + "as " + "if " + "it" + "'s " + "got " + "to " \
    + "be" + " multiple strings." + " Okay, now this " + "one " \
    + "long" + "string " + "is over!"

print \
"""
If you really like a string, you can repeat it. For example, who doesn't
like pie? That's right, nobody. But if you really like it, you should
say it liek you mean it:""",

print "Pie" * 10

print "\nNow that's good eating."

raw_input("\n\nPress the enter key to exit.")&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/399583/399583/ReadMessage.aspx#399583</guid>
      <pubDate>Wed, 23 Sep 2009 09:30:38 -0700</pubDate>
    </item>
    <item>
      <title>raw input("")</title>
      <link>http://www.programmersheaven.com/mb/python/398957/398957/ReadMessage.aspx#398957</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/python/398957/398957/ReadMessage.aspx#398957"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/python/Board.aspx"&gt;Python&lt;/a&gt; forum.&lt;/p&gt;I've just started a book on programming wit Python after getting very frustrated with C++ and C#. But I can't get this very simple program to compile, it says there is something wrong with "input"&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;# Game over
# Demonstrates the print command

print "Game Over"

raw input("\n\nPress Enter to exit.")&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks for any and all reply's.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/398957/398957/ReadMessage.aspx#398957</guid>
      <pubDate>Mon, 21 Sep 2009 09:11:06 -0700</pubDate>
    </item>
    <item>
      <title>$newRow = rand(0. $boardData</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/398830/398830/ReadMessage.aspx#398830</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/398830/398830/ReadMessage.aspx#398830"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;&lt;pre class="sourcecode"&gt;$newRow = rand(0. $boardData["height"] - 1 - strlen($theWord));&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
What is with &lt;pre class="sourcecode"&gt;$boardData["height"]&lt;/pre&gt;? It looks like an array with a string inside, am I right? What would something like that be used for?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/398830/398830/ReadMessage.aspx#398830</guid>
      <pubDate>Sun, 20 Sep 2009 09:49:46 -0700</pubDate>
    </item>
    <item>
      <title>Small PHP program, just learning</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/397178/397178/ReadMessage.aspx#397178</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/397178/397178/ReadMessage.aspx#397178"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;In the following code I'M getting a strange output. The browser is displaying a textarea and the actual html code the for the form is inside the text area, it's strange and I can't find the problem.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&amp;gt;
&amp;lt;title&amp;gt;Pig Latin Generator&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;h1&amp;gt;Pig Latin Generator&amp;lt;/h1&amp;gt;
&amp;lt;?php

if($inputString == NULL)
{
	print &amp;lt;&amp;lt;&amp;lt;HERE
	
	&amp;lt;form&amp;gt;
	&amp;lt;textarea name = "inputString"
		rows = 20
		cols = 40&amp;lt;/textarea&amp;gt;
	&amp;lt;input type = "submit"
		value = "pigify"&amp;gt;
	&amp;lt;/form&amp;gt;
HERE;
}

else
{
		//there is a value, so we'll deal with it
		// break phrase into array
	$words = split(" ", $inputString);
	
	foreach($words as $theWord)
	{
		$theWord = rtrim($theWord);
		$firstLetter = subsr($theWorld, 0, 1);
		$restOfWord = substr($theWord, 1, strlen($theWord));
			//print "$firstLetter) $restOfWord &amp;lt;br&amp;gt; \n";
		if(strstr("aeiouAEIOU", $firstLetter))
		{
				//it's a vowel
			$newWord = $theWord . "Way";
		}
		
		else
		{
				//it's a consonant
			$newWord = $restOfWord . $firstLetter . "ay";
		} // end if
		
		$newPhrase = $newPhrase . $newWord . " ";
	} // end foreach

print $newPhrase;

} // end if

?&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&lt;/pre&gt;&amp;gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/397178/397178/ReadMessage.aspx#397178</guid>
      <pubDate>Fri, 11 Sep 2009 08:06:07 -0700</pubDate>
    </item>
    <item>
      <title>PHP pig latin program</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/396592/396592/ReadMessage.aspx#396592</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/396592/396592/ReadMessage.aspx#396592"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;In the following code I'M getting a strange output. The browser is displaying a textarea and the actual html code the for the form is inside the text area, it's strange and I can't find the problem.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&amp;gt;
&amp;lt;title&amp;gt;Pig Latin Generator&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;h1&amp;gt;Pig Latin Generator&amp;lt;/h1&amp;gt;
&amp;lt;?php

if($inputString == NULL)
{
	print &amp;lt;&amp;lt;&amp;lt;HERE
	
	&amp;lt;form&amp;gt;
	&amp;lt;textarea name = "inputString"
		rows = 20
		cols = 40&amp;lt;/textarea&amp;gt;
	&amp;lt;input type = "submit"
		value = "pigify"&amp;gt;
	&amp;lt;/form&amp;gt;
HERE;
}

else
{
		//there is a value, so we'll deal with it
		// break phrase into array
	$words = split(" ", $inputString);
	
	foreach($words as $theWord)
	{
		$theWord = rtrim($theWord);
		$firstLetter = subsr($theWorld, 0, 1);
		$restOfWord = substr($theWord, 1, strlen($theWord));
			//print "$firstLetter) $restOfWord &amp;lt;br&amp;gt; \n";
		if(strstr("aeiouAEIOU", $firstLetter))
		{
				//it's a vowel
			$newWord = $theWord . "Way";
		}
		
		else
		{
				//it's a consonant
			$newWord = $restOfWord . $firstLetter . "ay";
		} // end if
		
		$newPhrase = $newPhrase . $newWord . " ";
	} // end foreach

print $newPhrase;

} // end if

?&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/396592/396592/ReadMessage.aspx#396592</guid>
      <pubDate>Sat, 05 Sep 2009 13:04:43 -0700</pubDate>
    </item>
    <item>
      <title>$_request</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/395348/395348/ReadMessage.aspx#395348</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/395348/395348/ReadMessage.aspx#395348"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I wrote the following program while reading a book on php. For of all can someone better explain the "$_request" function? And secondly, when I look at the output for this page I can't see that php is doing anything at all.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&amp;gt;
&amp;lt;title&amp;gt;Form Reader&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;h1&amp;gt;Form Reader&amp;lt;/h1&amp;gt;
&amp;lt;h3&amp;gt;Here are the field I found on the form&amp;lt;/h3&amp;gt;

&amp;lt;?php

print &amp;lt;&amp;lt;&amp;lt;HERE

&amp;lt;table border = 1&amp;gt;
&amp;lt;tr&amp;gt;
	&amp;lt;th&amp;gt;field&amp;lt;/th&amp;gt;
	&amp;lt;th&amp;gt;value&amp;lt;/th&amp;gt;
&amp;lt;/tr&amp;gt;
HERE;

foreach($_REQUEST as $field =&amp;gt; $value)
{
print &amp;lt;&amp;lt;&amp;lt;HERE
&amp;lt;tr&amp;gt;
	&amp;lt;td&amp;gt;$field&amp;lt;/td&amp;gt;
	&amp;lt;td&amp;gt;$value&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
HERE;
} // end foreach
print "&amp;lt;/table&amp;gt;\n";
?&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/395348/395348/ReadMessage.aspx#395348</guid>
      <pubDate>Wed, 19 Aug 2009 08:49:17 -0700</pubDate>
    </item>
    <item>
      <title>MySQL Admin &amp; Query Browser</title>
      <link>http://www.programmersheaven.com/mb/database/395128/395128/ReadMessage.aspx#395128</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/database/395128/395128/ReadMessage.aspx#395128"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/database/Board.aspx"&gt;Database &amp; SQL&lt;/a&gt; forum.&lt;/p&gt;I'M reading a book and MySQL but I need to load the datebase for the book before I can begin to use it. I have both files, create.sql, &amp;amp; populate.sql. I can't figure out how to load them into MySQL. The book suggested that I download MySQL Administrator &amp;amp; MySQL Query Browser, so I did. But I can't seem to login. In order to login to MySQL I just type in my password, but it seem to be more complicated to get into Query Browser or Administrator. Both programs want to know the following.&lt;br /&gt;
&lt;br /&gt;
Stored Connection&lt;br /&gt;
Server Host&lt;br /&gt;
Username&lt;br /&gt;
password&lt;br /&gt;
Default Schema&lt;br /&gt;
&lt;br /&gt;
I'M pretty sure my Server Host is "localhost", which is what I have it set to, but I'M not sure. Although I know my password, I don't know my username, the command based MySQL never ask me for my username. So how do I find out what it is?&lt;br /&gt;
And what is Default Schema? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/395128/395128/ReadMessage.aspx#395128</guid>
      <pubDate>Fri, 14 Aug 2009 09:31:03 -0700</pubDate>
    </item>
    <item>
      <title>MySQL CRASH COURSE</title>
      <link>http://www.programmersheaven.com/mb/mysql/394851/394851/ReadMessage.aspx#394851</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/mysql/394851/394851/ReadMessage.aspx#394851"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/mysql/Board.aspx"&gt;MySQL&lt;/a&gt; forum.&lt;/p&gt;I'M reading a book and MySQL but I need to load the datebase for the book before I can begin to use it. I have both files, create.sql, &amp;amp; populate.sql. I can't figure out how to load them into MySQL. The book suggested that I download MySQL Administrator &amp;amp; MySQL Query Browser, so I did. But I can't seem to login. In order to login to MySQL I just type in my password, but it seem to be more complicated to get into Query Browser or Administrator. Both programs want to know the following.&lt;br /&gt;
&lt;br /&gt;
Stored Connection&lt;br /&gt;
Server Host&lt;br /&gt;
Username&lt;br /&gt;
password&lt;br /&gt;
Default Schema&lt;br /&gt;
&lt;br /&gt;
I'M pretty sure my Server Host is "localhost", which is what I have it set to, but I'M not sure. Although I know my password, I don't know my username, the command based MySQL never ask me for my username. So how do I find out what it is?&lt;br /&gt;
And what is Default Schema? Thanks.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/mysql/394851/394851/ReadMessage.aspx#394851</guid>
      <pubDate>Sun, 09 Aug 2009 20:01:48 -0700</pubDate>
    </item>
    <item>
      <title>Trying to learn, please help</title>
      <link>http://www.programmersheaven.com/mb/sql-server/394722/394722/ReadMessage.aspx#394722</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/sql-server/394722/394722/ReadMessage.aspx#394722"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/sql-server/Board.aspx"&gt;SQL-Server&lt;/a&gt; forum.&lt;/p&gt;I just got a book on MySQL and I have some question&lt;br /&gt;
&lt;br /&gt;
First off, when I enter the commands that I'M getting from the book, commands like "SHOW DATABASES;", "USE database;", etc, it says something about a syntax error.&lt;br /&gt;
&lt;br /&gt;
Also, why do books like this just jump start you into commands? I would think they would want you to load a database into MySQL so you would have something to work with. Or maybe walk you through creating a new database and working with it. Thanks for any and all help.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/sql-server/394722/394722/ReadMessage.aspx#394722</guid>
      <pubDate>Wed, 05 Aug 2009 08:19:07 -0700</pubDate>
    </item>
    <item>
      <title>Learning MySQL</title>
      <link>http://www.programmersheaven.com/mb/mysql/394661/394661/ReadMessage.aspx#394661</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/mysql/394661/394661/ReadMessage.aspx#394661"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/mysql/Board.aspx"&gt;MySQL&lt;/a&gt; forum.&lt;/p&gt;I just got a book on MySQL and I have some question&lt;br /&gt;
&lt;br /&gt;
First off, when I enter the commands that I'M getting from the book, commands like "SHOW DATABASES;", "USE database;", etc, it says something about a syntax error.&lt;br /&gt;
&lt;br /&gt;
Also, why do books like this just jump start you into commands? I would think they would want you to load a database into MySQL so you would have something to work with. Or maybe walk you through creating a new database and working with it. Thanks for any and all help.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/mysql/394661/394661/ReadMessage.aspx#394661</guid>
      <pubDate>Tue, 04 Aug 2009 08:50:39 -0700</pubDate>
    </item>
    <item>
      <title>Debuging php poker program</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/393710/393710/ReadMessage.aspx#393710</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/393710/393710/ReadMessage.aspx#393710"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;When I first started this program it worked fine in the browser, but now I'M getting a blank page.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&amp;gt;
&amp;lt;title&amp;gt;poker dice&amp;lt;/title&amp;gt;

&amp;lt;style type="text/css"&amp;gt;
body
{
	background: green;
	color: tan;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;center&amp;gt;

&amp;lt;h1&amp;gt;Poker Dice&amp;lt;/h1&amp;gt;

&amp;lt;form&amp;gt;
&amp;lt;?php

	//check to see if this is first time here
if(empty($cash))
{
	$cash = 100;
} // end if

rollDice();

if($secondRoll == true)
{
	print "&amp;lt;h2&amp;gt;Second Roll&amp;lt;/h2&amp;gt;\n";
	$secondRoll = false;
	evaluate();
}

else
{
	print "&amp;lt;h2&amp;gt;First Roll&amp;lt;/h2&amp;gt;\n";
	$secondRoll = true;
} // end if/else

printStuff();

function rollDice()
{
	global $die, $secondRoll, $keepIt;
	
	print "&amp;lt;table border = 1&amp;gt;&amp;lt;td&amp;gt;&amp;lt;tr&amp;gt;";
	
	for($i = 0; $i &amp;lt; 5; $i++)
	{
		if($keepIt[$i] == "")
		{
			$die[$i] = rand(1,6);
		}
	
	else
	{
		$die[$i] = $keepIt[$i];
	} // end else
	
	$theFile = "die" . $die[$i] . ".jpg";
	
		// print out die images
print&amp;lt;&amp;lt;&amp;lt; HERE
	&amp;lt;td&amp;gt;
	&amp;lt;img src = "$theFile"
		height = 50
		width = 50&amp;gt;&amp;lt;br&amp;gt;
		
HERE;
	
	//print out a checkbox on first roll only
	if($secondRoll == false)
	{
print &amp;lt;&amp;lt;&amp;lt;HERE
	
		&amp;lt;input type = "checkbox"
		name = "keepIt[$i]"
		value = $die[$i]&amp;gt;
		&amp;lt;/td&amp;gt;
	
HERE;
	} // end if
} // end for loop

	//print out submit button and end of table
print &amp;lt;&amp;lt;&amp;lt;HERE
	&amp;lt;/tr&amp;gt;&amp;lt;/td&amp;gt;
	&amp;lt;tr&amp;gt;
	
	&amp;lt;td colspan = "5"&amp;gt;
	&amp;lt;center&amp;gt;
	&amp;lt;input type = "Submit"
	value = "roll again"&amp;gt;
	&amp;lt;/center&amp;gt;
	&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
	&amp;lt;/table&amp;gt;
HERE;
} // end rollDice()

if($keepIt[$i] == "")
{
	$die[$i] = rand(1,6);
}
else
{
	$die[$i] = $keepIt[$i];
} // end if/else

$theFile = "die" . $die[$i] . ".jpg";

	//print out images
print &amp;lt;&amp;lt;&amp;lt;HERE
	&amp;lt;td&amp;gt;
	&amp;lt;img src = "$theFile"
	height = 50
	width = 50&amp;gt;&amp;lt;br&amp;gt;
HERE;

	//print out a check box on the first roll only
if($secondRoll == false)
{
print &amp;lt;&amp;lt;&amp;lt;HERE
	&amp;lt;input type = "checkbox"
	name = "keepIt[$i]"
	value = $die[$i]&amp;gt;
	&amp;lt;/td&amp;gt;
HERE;
} // end if

	//print out submit button and end of table
print &amp;lt;&amp;lt;&amp;lt;HERE
&amp;lt;/tr&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td colspan = "5"&amp;gt;
&amp;lt;center&amp;gt;
&amp;lt;input type = "submit"
value = "roll again"&amp;gt;
&amp;lt;/center&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;
HERE;

function evaluate()
{
	global $die, $cash;
	
		//set up payoff
	$payoff = 0;
	
		//subtract some money for this roll
	$cash -= 2;
	
		//count the dice
	$numVals = array(6);
	
	for($theVal = 1; $theVal &amp;lt;= 6; $theVal++)
	{
		for($dieNum = 0; $dieNum &amp;lt; 5; $dieNum++)
		{
			if($die[$dieNum] == $theVal)
			{
				$numVals[$theVal]++;
			} // end if
		} // end  for loop
	} // end for loop
	
	//print out results
	// for($i = 1; $i &amp;lt;= 6; $i++)
	// {
	//		print "$i: $numVals[$i]&amp;lt;br&amp;gt;\n";
	// } // end for loop
	
		// count how many pairs, threes, fours, fives
	$numPairs = 0;
	$numThrees = 0;
	$numFours = 0;
	$numFives = 0;
	
	for($i = 1; $i &amp;lt;= 6; $i++)
	{
		switch($numVals[$i])
		{
			case: 2
				$numPairs++;
				break;
			case: 3
				$numThrees++;
				break;
			case: 4
				$numFours++;
				break;
			case: 5
				$numFives++;
				break;
		} // end switch
	} // end for loop
	
		// Check for two pairs
	if($numPairs == 2)
	{
		print "You have two pairs!&amp;lt;br&amp;gt;\n";
		$payoff = 1;
	} // end of
	
		// check for three of a kind and full house
	if($numThrees == 1)
	{
		if($numPairs == 1)
		{
				//Three of a kind and a pair is a full house
			print "You have a full house!&amp;lt;br&amp;gt;\n";
			$payoff = 5;
		}
		else
		{
			print "You have three of a kind!&amp;lt;br&amp;gt;\n&amp;lt;br&amp;gt;\n";
			$payoff = 2;
		} // end 'pair' if
	} // end 'three'if
	
		//check for four of a kind
	if($numFours == 1)
	{
		print "You have four of a kind!&amp;lt;br&amp;gt;\n";
		$payoff = 5;
	} // end if
	
		// check for five of a kind
	if($numVals == 1)
	{
		print "You got five of a kind!&amp;lt;br&amp;gt;\n";
		$payoff = 10;
	} // end if
	
		// check for flushes
	if(($numVals[1] == 1)
		&amp;amp;&amp;amp;($numVals[2] == 1)
		&amp;amp;&amp;amp;($numVals[3] == 1)
		&amp;amp;&amp;amp;($numVals[4] == 1)
		&amp;amp;&amp;amp;($numVals[5] == 1))
		{
			print "You have a flush!&amp;lt;br&amp;gt;\n";
			$payoff = 10;
		} // end if
	
	if(($numVals[2] == 1)
		&amp;amp;&amp;amp;($numVals[3] == 1)
		&amp;amp;&amp;amp;($numVals[4] == 1)
		&amp;amp;&amp;amp;($numVals[5] == 1)
		&amp;amp;&amp;amp;($numVals[6] == 1))
		{
			print "You have a flush!&amp;lt;br&amp;gt;\n";
			$payoff = 10;
		} // end if
	
	print "You bet 2&amp;lt;br&amp;gt;\n";
	print "payoff is $payoff&amp;lt;br&amp;gt;\n";
	$cash += $payoff;
} // END FUNCTIOn evaluate

	// count the dice
for($theVal = 1; $theVal &amp;lt;= 6; $theVal++)
{
	for($dieNum = 0; $dieNum &amp;lt; 5; $dieNum++)
	{
		if($die[$dieNum] == $theVal)
		{
			$numVals[$theVal}++;
		} // end if
	} // end for
} // end for

		// print out the results
/*	for($i = 1; $i &amp;lt;= 6; $i++)
	{
		print "$i:  $numVals[$i]&amp;lt;br&amp;gt;\n";
	} */
	
	// count how many pairs, threes, fours, fives
$numPairs = 0;
$numThrees = 0;
$numFours = 0;
$numFives = 0;

for($i = 1; $i &amp;lt;= 6; $i++)
{
	switch($numVals[$i])
	{
		case: 2
			$numPairs++;
			break;
		case: 3
			$numThrees++;
			break;
		case: 4
			$numFours++;
			break;
		case: 5
			$numFives++;
			break;
	} // end switch
} // end four

	// check for two pairs
if($numPairs == 2)
{
	print "You have pairs!&amp;lt;br&amp;gt;\n";
	$payoff = 1;
} // end if

	// check for three of a kind and full house
if($numThrees == 1)
{
	if($numPairs == 1)
	{
			// three of a kind and a pair is a full house
		print "You have a full house!&amp;lt;br&amp;gt;\n";
		$payoff = 5;
	}
	else
	{
		print "You have three of a kind!&amp;lt;br&amp;gt;\n";
		$payoff = 2;
	} // end 'pair' if
} // end 'three' if

	// check for four of a kind
if($numFours == 1)
{
	print "You have four of a kind!&amp;lt;br&amp;gt;\n";
	$payoff = 5;
}

	// check for five of a kind
if($numFives == 1)
{
	print "You got five of a kind!&amp;lt;br&amp;gt;\n";
	$payoff = 10;
}

	// check for straights
if(($numVals[1] == 1)
	&amp;amp;&amp;amp;($numVals[2] == 1)
	&amp;amp;&amp;amp;($numVals[3] == 1)
	&amp;amp;&amp;amp;($numVals[4] == 1)
	&amp;amp;&amp;amp;($numVals[5] == 1))
	{
		print "You have a straight!&amp;lt;br&amp;gt;\n";
		$payoff = 10;
	} // end if
	
if(($numVals[2] == 1)
	&amp;amp;&amp;amp;($numVals[3] == 1)
	&amp;amp;&amp;amp;($numVals[4] == 1)
	&amp;amp;&amp;amp;($numVals[5] == 1)
	&amp;amp;&amp;amp;($numVals[6] == 1))
	{
		print "You have a straight!&amp;lt;br&amp;gt;\n";
		$payoff = 10;
	}
	
function printStuff()
{
	global $cash, $secondRoll;
	
	print "Cash: $cash\n";
	
		// store variables in hidden fields
print &amp;lt;&amp;lt;&amp;lt;HERE
	
	&amp;lt;input type = "hidden"
	name = "secondRoll"
	value = "$secondRoll"&amp;gt;
	
	&amp;lt;input type = "hidden"
	name = "cash"
	value = "$cash"&amp;gt;
HERE;
} // end printStuff

?&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/center&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/393710/393710/ReadMessage.aspx#393710</guid>
      <pubDate>Wed, 15 Jul 2009 08:55:57 -0700</pubDate>
    </item>
    <item>
      <title>poker dice php</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/393514/393514/ReadMessage.aspx#393514</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/393514/393514/ReadMessage.aspx#393514"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I can't find the an error is this php code. It's probably somewhere in the second half of the code because I loaded the web page before and it worked fine. Note that the program is not finished.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&amp;gt;
&amp;lt;title&amp;gt;poker dice&amp;lt;/title&amp;gt;

&amp;lt;style type="text/css"&amp;gt;
body
{
	background: green;
	color: tan;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;center&amp;gt;

&amp;lt;h1&amp;gt;Poker Dice&amp;lt;/h1&amp;gt;

&amp;lt;form&amp;gt;
&amp;lt;?php

	//check to see if this is first time here
if(empty($cash))
{
	$cash = 100;
} // end if

rollDice();

if($secondRoll == true)
{
	print "&amp;lt;h2&amp;gt;Second Roll&amp;lt;/h2&amp;gt;\n";
	$secondRoll = false;
	evaluate();
}

else
{
	print "&amp;lt;h2&amp;gt;First Roll&amp;lt;/h2&amp;gt;\n";
	$secondRoll = true;
} // end if/else

printStuff();

function rollDice()
{
	global $die, $secondRoll, $keepIt;
	
	print "&amp;lt;table border = 1&amp;gt;&amp;lt;td&amp;gt;&amp;lt;tr&amp;gt;";
	
	for($i = 0; $i &amp;lt; 5; $i++)
	{
		if($keepIt[$i] == "")
		{
			$die[$i] = rand(1,6);
		}
	
	else
	{
		$die[$i] = $keepIt[$i];
	} // end else
	
	$theFile = "die" . $die[$i] . ".jpg";
	
		// print out die images
	print&amp;lt;&amp;lt;&amp;lt; HERE
	&amp;lt;td&amp;gt;
	&amp;lt;img src = "$theFile"
		height = 50
		width = 50&amp;gt;&amp;lt;br&amp;gt;
		
HERE;
	
	//print out a checkbox on first roll only
	if($secondRoll == false)
	{
		print &amp;lt;&amp;lt;&amp;lt;HERE
	
		&amp;lt;input type = "checkbox"
		name = "keepIt[$i]"
		value = $die[$i]&amp;gt;
		&amp;lt;/td&amp;gt;
	
HERE;
	} // end if
} // end for loop

	//print out submit button and end of table
	print &amp;lt;&amp;lt;&amp;lt;HERE
	&amp;lt;/tr&amp;gt;&amp;lt;/td&amp;gt;
	&amp;lt;tr&amp;gt;
	
	&amp;lt;td colspan = "5"&amp;gt;
	&amp;lt;center&amp;gt;
	&amp;lt;input type = "Submit"
	value = "roll again"&amp;gt;
	&amp;lt;/center&amp;gt;
	&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
	&amp;lt;/table&amp;gt;
HERE;
} // end rollDice()

if($keepIt[$i] == "")
{
	$die[$i] = rand(1,6);
}
else
{
	$die[$i] = $keepIt[$i];
} // end if/else

$theFile = "die" . $die[$i] . ".jpg";

	//print out images
		print &amp;lt;&amp;lt;&amp;lt;HERE
	&amp;lt;td&amp;gt;
	&amp;lt;img src = "$theFile"
	height = 50
	width = 50&amp;gt;&amp;lt;br&amp;gt;
HERE;

	//print out a check box on the first roll only
if($secondRoll == false)
{
	print &amp;lt;&amp;lt;&amp;lt;HERE
	&amp;lt;input type = "checkbox"
	name = "keepIt[$i]"
	value = $die[$i]&amp;gt;
	&amp;lt;/td&amp;gt;
HERE;
} // end if

	//print out submit button and end of table
print &amp;lt;&amp;lt;&amp;lt;HERE
&amp;lt;/tr&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td colspan = "5"&amp;gt;
&amp;lt;center&amp;gt;
&amp;lt;input type = "submit"
value = "roll again"&amp;gt;
&amp;lt;/center&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;
HERE;

function evaluate()
{
	global $die, $cash;
	
		//set up payoff
	$payoff = 0;
	
		//subtract some money for this roll
	$cash -= 2;
	
		//count the dice
	$numVals = array(6);
	
	for($theVal = 1; $theVal &amp;lt;= 6; $theVal++)
	{
		for($dieNum = 0; $dieNum &amp;lt; 5; $dieNum++)
		{
			if($die[$dieNum] == $theVal)
			{
				$numVals[$theVal]++;
			} // end if
		} // end  for loop
	} // end for loop
	
	//print out results
	// for($i = 1; $i &amp;lt;= 6; $i++)
	// {
	//		print "$i: $numVals[$i]&amp;lt;br&amp;gt;\n";
	// } // end for loop
	
		// count how many pairs, threes, fours, fives
	$numPairs = 0;
	$numThrees = 0;
	$numFours = 0;
	$numFives = 0;
	
	for($i = 1; $i &amp;lt;= 6; $i++)
	{
		switch($numVals[$i])
		{
			case: 2
				$numPairs++;
				break;
			case: 3
				$numThrees++;
				break;
			case: 4
				$numFours++;
				break;
			case: 5
				$numFives++;
				break;
		} // end switch
	} // end for loop
	
		// Check for two pairs
	if($numPairs == 2)
	{
		print "You have two pairs!&amp;lt;br&amp;gt;\n";
		$payoff = 1;
	} // end of
	
		// check for three of a kind and full house
	if($numThrees == 1)
	{
		if($numPairs == 1)
		{
				//Three of a kind and a pair is a full house
			print "You have a full house!&amp;lt;br&amp;gt;\n";
			$payoff = 5;
		}
		else
		{
			print "You have three of a kind!&amp;lt;br&amp;gt;\n&amp;lt;br&amp;gt;\n";
			$payoff = 2;
		} // end 'pair' if
	} // end 'three'if
	
		//check for four of a kind
	if($numFours == 1)
	{
		print "You have four of a kind!&amp;lt;br&amp;gt;\n";
		$payoff = 5;
	} // end if
	
		// check for five of a kind
	if($numVals == 1)
	{
		print "You got five of a kind!&amp;lt;br&amp;gt;\n";
		$payoff = 10;
	} // end if
	
		// check for flushes
	if(($numVals[1] == 1)
		&amp;amp;&amp;amp;($numVals[2] == 1)
		&amp;amp;&amp;amp;($numVals[3] == 1)
		&amp;amp;&amp;amp;($numVals[4] == 1)
		&amp;amp;&amp;amp;($numVals[5] == 1))
		{
			print "You have a flush!&amp;lt;br&amp;gt;\n";
			$payoff = 10;
		} // end if
	
	if(($numVals[2] == 1)
		&amp;amp;&amp;amp;($numVals[3] == 1)
		&amp;amp;&amp;amp;($numVals[4] == 1)
		&amp;amp;&amp;amp;($numVals[5] == 1)
		&amp;amp;&amp;amp;($numVals[6] == 1))
		{
			print "You have a flush!&amp;lt;br&amp;gt;\n";
			$payoff = 10;
		} // end if
	
	print "You bet 2&amp;lt;br&amp;gt;\n";
	print "payoff is $payoff&amp;lt;br&amp;gt;\n";
	$cash += $payoff;
} // END FUNCTIOn evaluate

?&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/393514/393514/ReadMessage.aspx#393514</guid>
      <pubDate>Thu, 09 Jul 2009 09:15:45 -0700</pubDate>
    </item>
    <item>
      <title>A good PHP IDE</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/393117/393117/ReadMessage.aspx#393117</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/393117/393117/ReadMessage.aspx#393117"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I'M currently trying to learn PHP and I'M using Dreamweaver's code view to do it. It's better than noting, but does anyone have any suggestions on some more elaborate IDEs for PHP. I'M used to using Microsoft's Visual Studio for C++ and C# when I was trying to learn them.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/393117/393117/ReadMessage.aspx#393117</guid>
      <pubDate>Wed, 01 Jul 2009 09:12:21 -0700</pubDate>
    </item>
    <item>
      <title>Re: PigLatin program, calling methods.</title>
      <link>http://www.programmersheaven.com/mb/csharp/392979/393116/ReadMessage.aspx#393116</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/csharp/392979/393116/ReadMessage.aspx#393116"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;Yes thanks, I understand it better now.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/392979/393116/ReadMessage.aspx#393116</guid>
      <pubDate>Wed, 01 Jul 2009 09:08:56 -0700</pubDate>
    </item>
    <item>
      <title>PigLatin program, calling methods.</title>
      <link>http://www.programmersheaven.com/mb/csharp/392979/392979/ReadMessage.aspx#392979</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/csharp/392979/392979/ReadMessage.aspx#392979"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;Could someone please help me to understand this small program below?&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PigLatin
{
    class Pig
    {
        static void Main(string[] args)
        {
            string pigWord = "";
            string sentence = "";
            string firstLetter;
            string restOfWord;
            string vowels = "AEIOUaeiou";
            int letterPos;

            while(sentence.ToLower() != "quit")
            {
                Console.WriteLine("Please enter a sentence or type \"quit\" to exit");
                sentence = Console.ReadLine();

                foreach (string word in sentence.Split())
                {
                    firstLetter = word.Substring(0, 1);
                    restOfWord = word.Substring(1, word.Length - 1);

                    letterPos = vowels.IndexOf(firstLetter);

                    if (letterPos == -1)
                    {
                        // it's a consonant
                        pigWord = restOfWord + firstLetter + "ay";
                    }
                    else
                    {
                        // it's a vowel
                        pigWord = word + "way";
                    } // end if

                    Console.Write("{0} ", pigWord);
                } // end foreach
            } // end while
        } // end Main
    } // end class
} // namespace&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This is the part I'M having the most trouble with.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
foreach (string word in sentence.Split())
                {
                    firstLetter = word.Substring(0, 1);
                    restOfWord = word.Substring(1, word.Length - 1);

                    letterPos = vowels.IndexOf(firstLetter);

                    if (letterPos == -1)&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/392979/392979/ReadMessage.aspx#392979</guid>
      <pubDate>Sun, 28 Jun 2009 20:59:51 -0700</pubDate>
    </item>
    <item>
      <title>Re: What's up this this string method - Lengh?</title>
      <link>http://www.programmersheaven.com/mb/csharp/392615/392906/ReadMessage.aspx#392906</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/csharp/392615/392906/ReadMessage.aspx#392906"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;Thanks Psightoplazm, that cleared it up for me. I need to memorize the different icons in MS visual studio.net so I'll know the difference next time. Again, thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/392615/392906/ReadMessage.aspx#392906</guid>
      <pubDate>Fri, 26 Jun 2009 08:46:14 -0700</pubDate>
    </item>
    <item>
      <title>Understanding php programming</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/392904/392904/ReadMessage.aspx#392904</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/392904/392904/ReadMessage.aspx#392904"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I'M reading a book on PHP 5 programming. I just finished a chapter 3 that ended with a rather simple game but code that was less that simple. Now, I may be able to figure out how it works by reading the books explanation and studying the code line by line very VERY slowly. But how do people get to where they and just read and write this stuff. Is my confusion normal? Like I said, I might could read this out a slowly figure out what's going on, but I couldn't turn around tomorrow and write another program like that without a LOT of help. There  were four or five functions and some of them were intertwined. Is it just me? Am I not meant to be a programmer?&lt;br /&gt;
Also, I think I might stand a better change if I were taught how to write programs before I actually start writing the programs. As in planing it out. How many variables do I need, what should I make into functions and how many functions will I need. That type of thing. I've never read a programming book that taught the potential programmer to think like that. Some might have mentioned it, but they still just gave me the code and a less than satisfactory explanation at the end of the program code. Thanks for any and all reply's.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/392904/392904/ReadMessage.aspx#392904</guid>
      <pubDate>Fri, 26 Jun 2009 07:58:29 -0700</pubDate>
    </item>
    <item>
      <title>function parameters</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/392738/392738/ReadMessage.aspx#392738</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/392738/392738/ReadMessage.aspx#392738"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;In the code below, I understand the $place variable and how it's working. What I can't understand is how I'M getting the output "he played 1, 2, etc... How is that function and the $stanza variable returning a single digit number? Thanks&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&amp;gt;
&amp;lt;title&amp;gt;Param Old Man&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;h1&amp;gt;Param Old Man&amp;lt;/h1&amp;gt;
&amp;lt;h3&amp;gt;Demonstrates use of function parameters&amp;lt;/h3&amp;gt;
&amp;lt;?php

print verse(1);
print chorus();
print verse(2);
print chorus();
print verse(3);
print chorus();
print verse(4);
print chorus();

function verse($stanza)
{
	switch($stanza)
	{
		case 1:
			$place = "thumb";
			break;
		case 2:
			$place = "shoe";
			break;
		case 3:
			$place = "knee";
			break;
		case 4:
			$place = "door";
			break;
		default:
			$place = "I don't know where";
	} //end switch

	$output = &amp;lt;&amp;lt;&amp;lt;HERE
	This old man, he played $stanza&amp;lt;br&amp;gt;
	He played knick-knack on my $place&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
HERE;
	return $output;
} //end veruse

function chorus()
{
	$output = &amp;lt;&amp;lt;&amp;lt;HERE
	...with a knick-knack&amp;lt;br&amp;gt;
	paddy-wack&amp;lt;br&amp;gt;
	give a dog a bone&amp;lt;br&amp;gt;
	this old man came rolling home&amp;lt;br&amp;gt;
	&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
HERE;
	return $output;
}// end chorus

?&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/392738/392738/ReadMessage.aspx#392738</guid>
      <pubDate>Tue, 23 Jun 2009 09:01:17 -0700</pubDate>
    </item>
    <item>
      <title>print &lt;&lt;&lt;WORD</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/392669/392669/ReadMessage.aspx#392669</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/392669/392669/ReadMessage.aspx#392669"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;What is this thing all about and what happens if I don't use it?&lt;br /&gt;
&lt;br /&gt;
print &amp;lt;&amp;lt;&amp;lt;HERE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HERE;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/392669/392669/ReadMessage.aspx#392669</guid>
      <pubDate>Mon, 22 Jun 2009 07:56:02 -0700</pubDate>
    </item>
    <item>
      <title>What's up this this string method?</title>
      <link>http://www.programmersheaven.com/mb/csharp/392615/392615/ReadMessage.aspx#392615</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/csharp/392615/392615/ReadMessage.aspx#392615"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;&lt;pre class="sourcecode"&gt;string theString = "C# Programming for Beginners";
Console.WriteLine("default: \t {0}", theString);            Console.WriteLine("lowercase: \t {0}", theString.ToLower());            

Console.WriteLine("uppercase: \t {0}", theString.ToUpper());            

Console.WriteLine("replace: \t {0}", theString.Replace("#", "sharp"));         

Console.WriteLine("length: \t {0}", theString.Length);          

Console.WriteLine("\"for\" occurs at character {0}", theString.IndexOf("for"));&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
In the code above, why does the Length method not get two parentheses like ToLower and ToUpper?&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/392615/392615/ReadMessage.aspx#392615</guid>
      <pubDate>Sun, 21 Jun 2009 08:42:24 -0700</pubDate>
    </item>
    <item>
      <title>What's up with this simple php program?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/392599/392599/ReadMessage.aspx#392599</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/392599/392599/ReadMessage.aspx#392599"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I'M getting this output in the browser window, it's showing the code instead of the end result.&lt;br /&gt;
&lt;br /&gt;
chkSoda: $chkSoda&lt;br /&gt;
chkShake: $chkShake&lt;br /&gt;
chkKetchup: $chkKetchup&lt;br /&gt;
HERE; $total = 0; if(!empty($chkFries)) { print ("You chose&lt;br /&gt;
\n"); $total = $total + $chkFries; } //end if if(!empty($chkSoda)) { print ("You chose soda&lt;br /&gt;
\n") $total = $total + $chkSoda; } //end if if(!empty($chkShake)) { print("You chose Shake&lt;br /&gt;
\n") $total = $total + $chkShake; } //end if if(!empty($chkKetchup)) { print("You chose Ketchup&lt;br /&gt;
\n") $total = $total + $chkKetchup; } //end if print "The total cost is \$$total \n"; ?&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Here is my program&lt;br /&gt;
And if I change &amp;lt;? to &amp;lt;?php then the browser just shows a blank page when the php program is called. Please help.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&amp;gt;
&amp;lt;title&amp;gt;Checkbox Demo&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;h3&amp;gt;Demonstrates reading checkboxes&amp;lt;/h3&amp;gt;

&amp;lt;?

print &amp;lt;&amp;lt;&amp;lt;HERE

chkFries: $chkFries &amp;lt;br&amp;gt;
chkSoda: $chkSoda &amp;lt;br&amp;gt;
chkShake: $chkShake &amp;lt;br&amp;gt;
chkKetchup: $chkKetchup &amp;lt;br&amp;gt;
&amp;lt;hr&amp;gt;

HERE;

$total = 0;

if(!empty($chkFries))
{
	print ("You chose &amp;lt;br&amp;gt; \n");
	$total = $total + $chkFries;
} //end if

if(!empty($chkSoda))
{
	print ("You chose soda &amp;lt;br&amp;gt; \n")
	$total = $total + $chkSoda;
} //end if

if(!empty($chkShake))
{
	print("You chose Shake &amp;lt;br&amp;gt; \n")
	$total = $total + $chkShake;
} //end if

if(!empty($chkKetchup))
{
	print("You chose Ketchup &amp;lt;br&amp;gt; \n")
	$total = $total + $chkKetchup;
} //end if

print "The total cost is \$$total \n";
?&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/392599/392599/ReadMessage.aspx#392599</guid>
      <pubDate>Sat, 20 Jun 2009 19:14:49 -0700</pubDate>
    </item>
    <item>
      <title>Simple program, why am I getting a blank page?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/392244/392244/ReadMessage.aspx#392244</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/392244/392244/ReadMessage.aspx#392244"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;When I load this php page into my browser I just get a blank white page. Apache and php are set up fine because most of my other programs work fine. Please take  a look at the code.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&amp;gt;
&amp;lt;title&amp;gt;HiUser&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;h1&amp;gt;Hi User&amp;lt;/h1&amp;gt;
&amp;lt;?php

if(empty($userName))
{
	print &amp;lt;&amp;lt;&amp;lt;HERE
	&amp;lt;form&amp;gt;
	Please enter your name:
	&amp;lt;input type = "text"
	name = "userName"&amp;gt;&amp;lt;br&amp;gt;
	&amp;lt;input type = "submit"&amp;gt;
	&amp;lt;/form&amp;gt;
 HERE;
}
else{print "&amp;lt;h3&amp;gt;Hi there, $userName!&amp;lt;/h3&amp;gt;";}
?&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/392244/392244/ReadMessage.aspx#392244</guid>
      <pubDate>Fri, 12 Jun 2009 09:20:55 -0700</pubDate>
    </item>
    <item>
      <title>Simple PHP page, not showing up?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/391886/391886/ReadMessage.aspx#391886</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/391886/391886/ReadMessage.aspx#391886"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I'M reading the book "PHP 5/MySQL Programming for the absolute beginner" and I'M only in the second chapter. One of the examples in the book is giving me a strange output. Please read.&lt;br /&gt;
&lt;br /&gt;
--errorPage--&lt;br /&gt;
Your Output&lt;br /&gt;
"; print $basicText; print ""; ?&amp;gt;&lt;br /&gt;
--errorPage--&lt;br /&gt;
&lt;br /&gt;
--html--&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Border Maker&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;center&amp;gt;
&amp;lt;h1&amp;gt;Border Maker&amp;lt;/h1&amp;gt;
&amp;lt;h3&amp;gt;Demonstrates how to read HTML form elements&amp;lt;/h3&amp;gt;

&amp;lt;form method = "post"
action = "borderMaker.php"&amp;gt;


&amp;lt;h3&amp;gt;Text to modify&amp;lt;/h3&amp;gt;
&amp;lt;textarea name = "basicText"
rows = "10"
cols = "40"&amp;gt;
Four score and seven years ago our fathers brought forth on this
continent a new nation, conceived in liberty and dedicated to the
proposition that all men are created equal. Now we are engaged in a
great civil war, testing whether that nation or any nation so
conceived and so dedicated can long endure.
&amp;lt;/textarea&amp;gt;

&amp;lt;table border = "2"&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td&amp;gt;&amp;lt;h3&amp;gt;Border style&amp;lt;/h3&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;td colspan = "2"&amp;gt;&amp;lt;h3&amp;gt;Border Size&amp;lt;/h3&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;

&amp;lt;tr&amp;gt;
&amp;lt;td&amp;gt;
&amp;lt;select name = borderStyle&amp;gt;
&amp;lt;option value = "ridge"&amp;gt;ridge&amp;lt;/option&amp;gt;
&amp;lt;option value = "groove"&amp;gt;groove&amp;lt;/option&amp;gt;
&amp;lt;option value = "double"&amp;gt;double&amp;lt;/option&amp;gt;
&amp;lt;option value = "inset"&amp;gt;inset&amp;lt;/option&amp;gt;
&amp;lt;option value = "outset"&amp;gt;outset&amp;lt;/option&amp;gt;
&amp;lt;/select&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;


&amp;lt;select size = 5
name = borderSize&amp;gt;
&amp;lt;option value = "1"&amp;gt;1&amp;lt;/option&amp;gt;
&amp;lt;option value = "2"&amp;gt;2&amp;lt;/option&amp;gt;
&amp;lt;option value = "3"&amp;gt;3&amp;lt;/option&amp;gt;
&amp;lt;option value = "5"&amp;gt;5&amp;lt;/option&amp;gt;
&amp;lt;option value = "10"&amp;gt;10&amp;lt;/option&amp;gt;
&amp;lt;/select&amp;gt;
&amp;lt;/td&amp;gt;

&amp;lt;td&amp;gt;
&amp;lt;input type = "radio"
name = "sizeType"
value = "px"&amp;gt;pixels&amp;lt;br&amp;gt;
&amp;lt;input type = "radio"
name = "sizeType"
value = "pt"&amp;gt;points&amp;lt;br&amp;gt;
&amp;lt;input type = "radio"
name = "sizeType"
value = "cm"&amp;gt;centimeters&amp;lt;br&amp;gt;
&amp;lt;input type = "radio"
name = "sizeType"
value = "in"&amp;gt;inches&amp;lt;br&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;

&amp;lt;input type = "submit"
value = "show me"&amp;gt;


&amp;lt;/form&amp;gt;

&amp;lt;/center&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
--html--&lt;br /&gt;
&lt;br /&gt;
--php--&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Your Output&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;Your Output&amp;lt;/h1&amp;gt;
&amp;lt;center&amp;gt;
&amp;lt;?
$theStyle = &amp;lt;&amp;lt;&amp;lt;HERE
"border-width:$borderSize$sizeType;
border-style:$borderStyle;
border-color:green"
HERE;

print "&amp;lt;div style = $theStyle&amp;gt;";
print $basicText;
print "&amp;lt;/span&amp;gt;";

?&amp;gt;
&amp;lt;/center&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--php--&lt;br /&gt;
&lt;br /&gt;
So can anyone please help me out here? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/391886/391886/ReadMessage.aspx#391886</guid>
      <pubDate>Wed, 03 Jun 2009 09:05:57 -0700</pubDate>
    </item>
    <item>
      <title>Please explain a smiple question.</title>
      <link>http://www.programmersheaven.com/mb/database/391845/391845/ReadMessage.aspx#391845</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/database/391845/391845/ReadMessage.aspx#391845"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/database/Board.aspx"&gt;Database &amp; SQL&lt;/a&gt; forum.&lt;/p&gt;I've been into the C family of programming languages for some time now, although I've never been very good with it. I read that database programmers made good money and never have trouble getting a job, I don't know if that's true, but I did read that. I started to read a book on SQL but the book didn't even mention where or in what environment I needed to type my SQL commands in. It jumped straight in with commands like SELECT, I didn't even have a database to play with at this point. I just started reading a book on PHP &amp;amp; MySQL. Apart from having MySQL installed, I don't know anything about it or SQL. SQL is typed into the MySQL program, am I understanding that right. I'M just a little confused and I need some direction. I do love computers but I don't have a degree and I really want to quite working in a dead end no heat or AC factory. Can someone please steer me in the right direction please. Thanks.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/391845/391845/ReadMessage.aspx#391845</guid>
      <pubDate>Tue, 02 Jun 2009 07:50:11 -0700</pubDate>
    </item>
    <item>
      <title>Please look at this PHP code.</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/391844/391844/ReadMessage.aspx#391844</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/391844/391844/ReadMessage.aspx#391844"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I'M reading the book "PHP 5/MySQL Programming for the absolute beginner" and I'M only in the second chapter. One of the examples in the book is giving me a strange output. Please read.&lt;br /&gt;
&lt;br /&gt;
--errorPage--&lt;br /&gt;
Your Output&lt;br /&gt;
"; print $basicText; print ""; ?&amp;gt;&lt;br /&gt;
--errorPage--&lt;br /&gt;
&lt;br /&gt;
--html--&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Border Maker&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Border Maker&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Demonstrates how to read HTML form elements&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;form method = "post"&lt;br /&gt;
      action = "borderMaker.php"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Text to modify&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;textarea name = "basicText"&lt;br /&gt;
          rows = "10"&lt;br /&gt;
          cols = "40"&amp;gt;&lt;br /&gt;
Four score and seven years ago our fathers brought forth on this&lt;br /&gt;
continent a new nation, conceived in liberty and dedicated to the&lt;br /&gt;
proposition that all men are created equal. Now we are engaged in a&lt;br /&gt;
great civil war, testing whether that nation or any nation so&lt;br /&gt;
conceived and so dedicated can long endure.&lt;br /&gt;
&amp;lt;/textarea&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border = "2"&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&amp;lt;h3&amp;gt;Border style&amp;lt;/h3&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td colspan = "2"&amp;gt;&amp;lt;h3&amp;gt;Border Size&amp;lt;/h3&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;select name = borderStyle&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "ridge"&amp;gt;ridge&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "groove"&amp;gt;groove&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "double"&amp;gt;double&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "inset"&amp;gt;inset&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "outset"&amp;gt;outset&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;select size = 5&lt;br /&gt;
        name = borderSize&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "1"&amp;gt;1&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "2"&amp;gt;2&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "3"&amp;gt;3&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "5"&amp;gt;5&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value = "10"&amp;gt;10&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;input type = "radio"&lt;br /&gt;
       name = "sizeType"&lt;br /&gt;
       value = "px"&amp;gt;pixels&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;input type = "radio"&lt;br /&gt;
       name = "sizeType"&lt;br /&gt;
       value = "pt"&amp;gt;points&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;input type = "radio"&lt;br /&gt;
       name = "sizeType"&lt;br /&gt;
       value = "cm"&amp;gt;centimeters&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;input type = "radio"&lt;br /&gt;
       name = "sizeType"&lt;br /&gt;
       value = "in"&amp;gt;inches&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;input type = "submit"&lt;br /&gt;
       value = "show me"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--html--&lt;br /&gt;
&lt;br /&gt;
--php--&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Your Output&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Your Output&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
$theStyle = &amp;lt;&amp;lt;&amp;lt;HERE&lt;br /&gt;
"border-width:$borderSize$sizeType;&lt;br /&gt;
border-style:$borderStyle;&lt;br /&gt;
border-color:green"&lt;br /&gt;
HERE;&lt;br /&gt;
&lt;br /&gt;
print "&amp;lt;div style = $theStyle&amp;gt;";&lt;br /&gt;
print $basicText;&lt;br /&gt;
print "&amp;lt;/span&amp;gt;";&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--php--&lt;br /&gt;
&lt;br /&gt;
So can anyone please help me out here? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/391844/391844/ReadMessage.aspx#391844</guid>
      <pubDate>Tue, 02 Jun 2009 07:44:02 -0700</pubDate>
    </item>
    <item>
      <title>SQL and MySQL</title>
      <link>http://www.programmersheaven.com/mb/mysql/391779/391779/ReadMessage.aspx#391779</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/mysql/391779/391779/ReadMessage.aspx#391779"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/mysql/Board.aspx"&gt;MySQL&lt;/a&gt; forum.&lt;/p&gt;I've been into the C family of programming languages for some time now, although I've never been very good with it. I read that database programmers made good money and never have trouble getting a job, I don't know if that's true, but I did read that. I started to read a book on SQL but the book didn't even mention where or in what environment I needed to type my SQL commands in. It jumped straight in with commands like SELECT, I didn't even have a database to play with at this point. I just started reading a book on PHP &amp;amp; MySQL. Apart from having MySQL installed, I don't know anything about it or SQL. SQL is typed into the MySQL program, am I understanding that right. I'M just a little confused and I need some direction. I do love computers but I don't have a degree and I really want to quite working in a dead end no heat or AC factory. Can someone please steer me in the right direction please. Thanks.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/mysql/391779/391779/ReadMessage.aspx#391779</guid>
      <pubDate>Sun, 31 May 2009 18:53:25 -0700</pubDate>
    </item>
    <item>
      <title>Some direction</title>
      <link>http://www.programmersheaven.com/mb/sql-server/391776/391776/ReadMessage.aspx#391776</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/sql-server/391776/391776/ReadMessage.aspx#391776"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/sql-server/Board.aspx"&gt;SQL-Server&lt;/a&gt; forum.&lt;/p&gt;I've been into the C family of programming languages for some time now, although I've never been very good with it. I read that database programmers made good money and never have trouble getting a job, I don't know if that's true, but I did read that. I started to read a book on SQL but the book didn't even mention where or in what environment I needed to type my SQL commands in. It jumped straight in with commands like SELECT, I didn't even have a database to play with at this point. I just started reading a book on PHP &amp;amp; MySQL. Apart from having MySQL installed, I don't know anything about it or SQL. SQL is typed into the MySQL program, am I understanding that right. I'M just a little confused and I need some direction. I do love computers but I don't have a degree and I really want to quite working in a dead end no heat or AC factory. Can someone please steer me in the right direction please. Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/sql-server/391776/391776/ReadMessage.aspx#391776</guid>
      <pubDate>Sun, 31 May 2009 15:49:33 -0700</pubDate>
    </item>
    <item>
      <title>SQL &amp; MySQL</title>
      <link>http://www.programmersheaven.com/mb/database/391775/391775/ReadMessage.aspx#391775</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/database/391775/391775/ReadMessage.aspx#391775"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/database/Board.aspx"&gt;Database &amp; SQL&lt;/a&gt; forum.&lt;/p&gt;I've been into the C family of programming languages for some time now, although I've never been very good with it. I read that database programmers made good money and never have trouble getting a job, I don't know if that's true, but I did read that. I just started reading a book on PHP &amp;amp; MySQL. Apart from having SQL installed, I don't know anything about it or SQL. SQL is typed into the MySQL program, am I understanding that right. I'M just a little confused and I need some direction. I do love computers but I don't have a degree and I really want to quite working in a dead end no heat or AC factory. Can someone please steer me in the right direction please. Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/391775/391775/ReadMessage.aspx#391775</guid>
      <pubDate>Sun, 31 May 2009 15:48:28 -0700</pubDate>
    </item>
    <item>
      <title>Strange output</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/391737/391737/ReadMessage.aspx#391737</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/391737/391737/ReadMessage.aspx#391737"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I'M reading the book "PHP 5/MySQL Programming for the absolute beginner" and I'M only in the second chapter. One of the examples in the book is giving me a strange output. Please read.&lt;br /&gt;
&lt;br /&gt;
--errorPage--&lt;br /&gt;
&lt;span style="color: Red;"&gt;Your Output&lt;br /&gt;
"; print $basicText; print ""; ?&amp;gt;&lt;/span&gt;&lt;br /&gt;
--errorPage--&lt;br /&gt;
&lt;br /&gt;
--html--&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Border Maker&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;center&amp;gt;
&amp;lt;h1&amp;gt;Border Maker&amp;lt;/h1&amp;gt;
&amp;lt;h3&amp;gt;Demonstrates how to read HTML form elements&amp;lt;/h3&amp;gt;

&amp;lt;form method = "post"
      action = "borderMaker.php"&amp;gt;


&amp;lt;h3&amp;gt;Text to modify&amp;lt;/h3&amp;gt;
&amp;lt;textarea name = "basicText"
          rows = "10"
          cols = "40"&amp;gt;
Four score and seven years ago our fathers brought forth on this
continent a new nation, conceived in liberty and dedicated to the
proposition that all men are created equal. Now we are engaged in a
great civil war, testing whether that nation or any nation so
conceived and so dedicated can long endure.
&amp;lt;/textarea&amp;gt;

&amp;lt;table border = "2"&amp;gt;
&amp;lt;tr&amp;gt;
  &amp;lt;td&amp;gt;&amp;lt;h3&amp;gt;Border style&amp;lt;/h3&amp;gt;&amp;lt;/td&amp;gt;
  &amp;lt;td colspan = "2"&amp;gt;&amp;lt;h3&amp;gt;Border Size&amp;lt;/h3&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;

&amp;lt;tr&amp;gt;
&amp;lt;td&amp;gt;
&amp;lt;select name = borderStyle&amp;gt;
  &amp;lt;option value = "ridge"&amp;gt;ridge&amp;lt;/option&amp;gt;
  &amp;lt;option value = "groove"&amp;gt;groove&amp;lt;/option&amp;gt;
  &amp;lt;option value = "double"&amp;gt;double&amp;lt;/option&amp;gt;
  &amp;lt;option value = "inset"&amp;gt;inset&amp;lt;/option&amp;gt;
  &amp;lt;option value = "outset"&amp;gt;outset&amp;lt;/option&amp;gt;
&amp;lt;/select&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;


&amp;lt;select size = 5
        name = borderSize&amp;gt;
  &amp;lt;option value = "1"&amp;gt;1&amp;lt;/option&amp;gt;
  &amp;lt;option value = "2"&amp;gt;2&amp;lt;/option&amp;gt;
  &amp;lt;option value = "3"&amp;gt;3&amp;lt;/option&amp;gt;
  &amp;lt;option value = "5"&amp;gt;5&amp;lt;/option&amp;gt;
  &amp;lt;option value = "10"&amp;gt;10&amp;lt;/option&amp;gt;
&amp;lt;/select&amp;gt;
&amp;lt;/td&amp;gt;

&amp;lt;td&amp;gt;
&amp;lt;input type = "radio"
       name = "sizeType"
       value = "px"&amp;gt;pixels&amp;lt;br&amp;gt;
&amp;lt;input type = "radio"
       name = "sizeType"
       value = "pt"&amp;gt;points&amp;lt;br&amp;gt;
&amp;lt;input type = "radio"
       name = "sizeType"
       value = "cm"&amp;gt;centimeters&amp;lt;br&amp;gt;
&amp;lt;input type = "radio"
       name = "sizeType"
       value = "in"&amp;gt;inches&amp;lt;br&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;

&amp;lt;input type = "submit"
       value = "show me"&amp;gt;

        
&amp;lt;/form&amp;gt;

&amp;lt;/center&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;
--html--&lt;br /&gt;
&lt;br /&gt;
--php--&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Your Output&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;Your Output&amp;lt;/h1&amp;gt;
&amp;lt;center&amp;gt;
&amp;lt;?
$theStyle = &amp;lt;&amp;lt;&amp;lt;HERE
"border-width:$borderSize$sizeType;
border-style:$borderStyle;
border-color:green"
HERE;

print "&amp;lt;div style = $theStyle&amp;gt;";
print $basicText;
print "&amp;lt;/span&amp;gt;";

?&amp;gt;
&amp;lt;/center&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;
--php--&lt;br /&gt;
&lt;br /&gt;
So can anyone please help me out here? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/391737/391737/ReadMessage.aspx#391737</guid>
      <pubDate>Sat, 30 May 2009 10:29:50 -0700</pubDate>
    </item>
    <item>
      <title>I'll give you $20.00</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/391398/391398/ReadMessage.aspx#391398</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/391398/391398/ReadMessage.aspx#391398"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Thanks but I already got it. finally.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/391398/391398/ReadMessage.aspx#391398</guid>
      <pubDate>Sat, 23 May 2009 14:27:37 -0700</pubDate>
    </item>
    <item>
      <title>index.html &amp; php</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/391326/391326/ReadMessage.aspx#391326</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/391326/391326/ReadMessage.aspx#391326"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;When I write php in a file with an html extension it doesn't work. But the php code I write in the index.html file works fine, can someone please explain that, thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/391326/391326/ReadMessage.aspx#391326</guid>
      <pubDate>Thu, 21 May 2009 18:08:43 -0700</pubDate>
    </item>
    <item>
      <title>Re: String error on simple text game</title>
      <link>http://www.programmersheaven.com/mb/csharp/391264/391318/ReadMessage.aspx#391318</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/csharp/391264/391318/ReadMessage.aspx#391318"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;Thanks for the help.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/391264/391318/ReadMessage.aspx#391318</guid>
      <pubDate>Thu, 21 May 2009 13:48:30 -0700</pubDate>
    </item>
    <item>
      <title>php functions</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/391317/391317/ReadMessage.aspx#391317</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/391317/391317/ReadMessage.aspx#391317"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Can someone please tell me the reason for the "punctuation" argument in this function please.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;html&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;?php
function writeName($fname,$punctuation)
{
echo $fname . " Refsnes" . $punctuation . "&amp;lt;br /&amp;gt;";
}

echo "My name is ";
writeName("Kai Jim",".");
echo "My sister's name is ";
writeName("Hege","!");
echo "My brother's name is ";
writeName("Ståle","?");
?&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/391317/391317/ReadMessage.aspx#391317</guid>
      <pubDate>Thu, 21 May 2009 13:46:21 -0700</pubDate>
    </item>
    <item>
      <title>.html vs .php</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/391303/391303/ReadMessage.aspx#391303</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/391303/391303/ReadMessage.aspx#391303"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I gave up trying to get Apache and PHP to work together on my computer and I just found a free php server to play around with. My first working php script is in the index.html file. None of my other php codes will work unless they have the php extension. So why does only the index file work with php as an html file but all others must be of type php.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/391303/391303/ReadMessage.aspx#391303</guid>
      <pubDate>Thu, 21 May 2009 08:20:49 -0700</pubDate>
    </item>
    <item>
      <title>String error on simple text game</title>
      <link>http://www.programmersheaven.com/mb/csharp/391264/391264/ReadMessage.aspx#391264</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/csharp/391264/391264/ReadMessage.aspx#391264"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;Take a look at the program bellow.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TextAdventureGame
{
    class adventure
    {
        static void Main()
        {
            string person;
            string occupation;
            string seaCreature;
            string animal;
            string friend;
            string tool;
            string problem;

            Console.WriteLine("Simple Adventure Game");

            Console.Write("What is your name? ");
            person = Console.ReadLine();

            Console.Write("What is your occupation? ");
            occupation = Console.ReadLine();

            Console.Write("Please tell me your favorite animal: ");
            animal = Console.ReadLine();

            Console.Write("What is the name of your friend? ");
            friend = Console.ReadLine();

            Console.Write("Name a problem you might face: ");
            problem = Console.ReadLine();

            Console.Write("Name a tool: ");
            tool = Console.ReadLine();

            Console.Write("Please give me the name of a sea creature: ");
            seaCreature = Console.ReadLine();

            Console.WriteLine();
            Console.WriteLine();
            
            //write the story
            Console.WriteLine("One day there was a person named {0}. Now, {0} was usually ", person);
            Console.WriteLine("very content to work as a {0}, but sometimes the job", occupation);
            Console.WriteLine("was very difficult.");
            Console.WriteLine("One day, {0} discovered that the heardbreak of {1} had ", person, problem);
            Console.WriteLine("occured just one time to often. \"I can't stand being a ");
            Console.WriteLine("{0} any more!\" yelled {1}, as he hurled away his ", occupation, person);
            Console.WriteLine("{0} in anger, No {1} will keep me from fulfilling", tool, problem);
            Console.WriteLine("My dreams! What I really want, said {0}, is to be just like ", person);
            Console.WriteLine("{0). Now THAT'S somebody to admire. So {1} put away the ", friend, person);
            Console.WriteLine("{0} forever, and followed {1} into the pastoral", tool, friend);
            Console.WriteLine("world of {0}-ranching. Eventually, {1} was able to ", animal, person);
            Console.WriteLine("retire, as happy as {0}", seaCreature);

            Console.WriteLine();
            Console.WriteLine();

            //Ask for Enter to quite
            Console.Write("Press Enter to continue!");
            Console.ReadLine();

        } //end Main
    } //end class
} //end namespace
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
When I compile the program in MS Visual C# 2008 it runs the program until it gets to the line&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Console.WriteLine("{0). Now THAT'S somebody to admire. So {1} put away the ", friend, person);
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The program does not run after that point and the compiler says that somethings wrong with my string formating. I got this program from the book "Microsoft C# Programming for the absolute beginner"&lt;br /&gt;
&lt;br /&gt;
Can someone please help me out I would really appreciate it. Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/391264/391264/ReadMessage.aspx#391264</guid>
      <pubDate>Wed, 20 May 2009 14:20:05 -0700</pubDate>
    </item>
    <item>
      <title>Page is diplaying php code rather than the end result</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/391207/391207/ReadMessage.aspx#391207</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/391207/391207/ReadMessage.aspx#391207"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I've set up everything just like I've been told by several different books and sites concerning my php.ini file and the apache's httpd.conf file. The only thing that's never linded up is I can't find a section called AddModule, but I but the "AddModule mod_php5.c" line in there anyway. I've done everything but my beginning page continues to display the actual php code rather than the end result. I would really really really appreciate some help. If anyone want's to add me to you MSN IM to better help my it's Garrett85@hotmail.com&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/391207/391207/ReadMessage.aspx#391207</guid>
      <pubDate>Tue, 19 May 2009 11:14:02 -0700</pubDate>
    </item>
    <item>
      <title>MySQL and SQL</title>
      <link>http://www.programmersheaven.com/mb/other-web-servers/391204/391204/ReadMessage.aspx#391204</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/other-web-servers/391204/391204/ReadMessage.aspx#391204"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/other-web-servers/Board.aspx"&gt;WEB Servers&lt;/a&gt; forum.&lt;/p&gt;When I click on MySQL it ask for a password, since I've never used it, what's the password? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/other-web-servers/391204/391204/ReadMessage.aspx#391204</guid>
      <pubDate>Tue, 19 May 2009 09:14:51 -0700</pubDate>
    </item>
    <item>
      <title>Thanks AsmGuru62, one more question</title>
      <link>http://www.programmersheaven.com/mb/general/391203/391203/ReadMessage.aspx#391203</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/general/391203/391203/ReadMessage.aspx#391203"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/general/Board.aspx"&gt;General programming&lt;/a&gt; forum.&lt;/p&gt;When I click on MySQL it ask for a password, since I've never used it, what's the password? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/general/391203/391203/ReadMessage.aspx#391203</guid>
      <pubDate>Tue, 19 May 2009 09:13:23 -0700</pubDate>
    </item>
    <item>
      <title>SQL</title>
      <link>http://www.programmersheaven.com/mb/general/391172/391172/ReadMessage.aspx#391172</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/general/391172/391172/ReadMessage.aspx#391172"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/general/Board.aspx"&gt;General programming&lt;/a&gt; forum.&lt;/p&gt;First of all, why isn't there an SQL forum on this site?&lt;br /&gt;
&lt;br /&gt;
I just got the book "Simply SQL, By Rudy Limeback" I am a complete beginner to this. I've always been into programming but never got past the simple stuff on C++ and C#. I read that datebase programmers make a lot of money so I thought I would learn SQL, I need to get out of this factory I'M working in. The book dives straight into writing in SQL without telling me where or in what to write it. I'M use to using a compiler with C++, I have no idea where to test and learn my code using SQL. Can someone please help? Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/general/391172/391172/ReadMessage.aspx#391172</guid>
      <pubDate>Mon, 18 May 2009 19:57:54 -0700</pubDate>
    </item>
    <item>
      <title>Wing IDE</title>
      <link>http://www.programmersheaven.com/mb/python/391083/391083/ReadMessage.aspx#391083</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/python/391083/391083/ReadMessage.aspx#391083"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/python/Board.aspx"&gt;Python&lt;/a&gt; forum.&lt;/p&gt;I'M trying to learn Python and as you might expect, I start with "Hello World". But I can't get anything to happen. How do I execute and view the end result of my code?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/391083/391083/ReadMessage.aspx#391083</guid>
      <pubDate>Sat, 16 May 2009 17:26:54 -0700</pubDate>
    </item>
    <item>
      <title>Giving up, please help</title>
      <link>http://www.programmersheaven.com/mb/Apache/391069/391069/ReadMessage.aspx#391069</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/Apache/391069/391069/ReadMessage.aspx#391069"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/Apache/Board.aspx"&gt;Apache&lt;/a&gt; forum.&lt;/p&gt;Thanks but I already got it. Finally.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Apache/391069/391069/ReadMessage.aspx#391069</guid>
      <pubDate>Sat, 16 May 2009 10:18:05 -0700</pubDate>
    </item>
    <item>
      <title>I don't think it's possible</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/390937/390937/ReadMessage.aspx#390937</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/390937/390937/ReadMessage.aspx#390937"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I don't think it's possible, it's all just one big lie. I'M going to try one more time by going to a book store and buy yet another book on the subject. If it doesn't work this time I'll pay someone on here if you can get it working for me.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/390937/390937/ReadMessage.aspx#390937</guid>
      <pubDate>Wed, 13 May 2009 08:09:24 -0700</pubDate>
    </item>
    <item>
      <title>PHP page display</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/390883/390883/ReadMessage.aspx#390883</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/390883/390883/ReadMessage.aspx#390883"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;My first php page was suppose to show a page with a lot of details on php. But instead it just shows the php script that I wrote in the file &lt;pre class="sourcecode"&gt;&amp;lt;?php
phpinfo();
?&amp;gt;&lt;/pre&gt; I've played around in C++, C#, and Basic. This is by far the hardest thing I've ever tried. I mean, I can't even get started. Does anyone know what's wrong?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/390883/390883/ReadMessage.aspx#390883</guid>
      <pubDate>Tue, 12 May 2009 08:18:28 -0700</pubDate>
    </item>
    <item>
      <title>Re: Newbi, trying to learn PHP but can't get past Apache</title>
      <link>http://www.programmersheaven.com/mb/Apache/390805/390881/ReadMessage.aspx#390881</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/Apache/390805/390881/ReadMessage.aspx#390881"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/Apache/Board.aspx"&gt;Apache&lt;/a&gt; forum.&lt;/p&gt;Thanks, I hope I got it right.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Apache/390805/390881/ReadMessage.aspx#390881</guid>
      <pubDate>Tue, 12 May 2009 07:46:15 -0700</pubDate>
    </item>
  </channel>
</rss>