...

View Full Version : Resolved Multiple Variables



CoolAsCarlito
06-18-2010, 11:31 PM
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.

rfresh
06-19-2010, 05:56 AM
I'm thinking:



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


Or am I missing something?

CoolAsCarlito
06-19-2010, 06:08 AM
I'm thinking:



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.

rfresh
06-19-2010, 06:13 AM
I forgot the comma...



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

CoolAsCarlito
06-19-2010, 06:20 AM
Thank you.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum