Recent content by jt_technical_service

  1. J

    What is wrong with my PHP code?

    Apparently, it doesn't like the $date in foreach. See php.net <?php $birthday = array( 'tony' => '19861217', 'bob' => '19861207', 'peter' => '19861220'); foreach ($birthday as &$name); echo $name."'s birthday is $date"; You also had a colon not a semicolon. ?> Good Luck!
  2. J

    Pleased help with PHP strings!! how do I make one?

    Hey there, Don't know nothing about XAMPP or WAMP, but a variable is a object that holds data in a program such as PHP. The data is called a string. So $JT = ' This is a string! '; remember that variables are case sensitive so $JT is separate from $jt. This prints the variable to screen...
  3. J

    what does this mean in php scripting?

    Hey Dean, The . means add. Add to, in addition. It basically connects a variable to a string. Why do you have a . after $header .=? You don't need that there! Hope this helps!
Back
Top