Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2008
    Posts
    680
    Thanks
    114
    Thanked 2 Times in 2 Posts

    Multiple Variables

    How can I put together my two variables?

    printf ( "<td valign=\"top\">%s</td>", $eventname_data['name'] );

    And have the $row['label']) variable appear right after name.
    Last edited by CoolAsCarlito; 06-19-2010 at 05:20 AM.

  • #2
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts
    I'm thinking:

    PHP Code:
    printf "<td valign=\"top\">%s%s</td>"$eventname_data['name']$row['label'] ); 
    Or am I missing something?
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #3
    Regular Coder
    Join Date
    Jun 2008
    Posts
    680
    Thanks
    114
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by rfresh View Post
    I'm thinking:

    PHP Code:
    printf "<td valign=\"top\">%s%s</td>"$eventname_data['name']$row['label'] ); 
    Or am I missing something?
    Nope all that gave me was a parse error.

  • #4
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts
    I forgot the comma...

    PHP Code:
    printf "<td valign=\"top\">%s%s</td>"$eventname_data['name'],$row['label'] ); 
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • Users who have thanked rfresh for this post:

    CoolAsCarlito (06-19-2010)

  • #5
    Regular Coder
    Join Date
    Jun 2008
    Posts
    680
    Thanks
    114
    Thanked 2 Times in 2 Posts
    Thank you.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •