![](http://headlineslist.com/images/banner.gif)
Integrating FBML and PHP in my facebook app?
|
02-19-2014, 12:42 PM
Post: #2
|
|||
|
|||
There are a few problems. First, you need quotes around your number. That's less important, because since $start is outside of PHP scope, it's being parsed just like regular HTML, which doesn't recognize $start, of course. There are a number of ways to do this.
1) Add PHP scope around your variable: <fb:time t="<?= $start ?>" tz="America/New_York" /> 2) Extend your overall scope to include the HTML code, but output it through PHP: <?php $start = 23434; echo "<fb:time t=\"$start\" tz=\"America/New_York\" />"; OR echo '<fb:time t="'.$start.'" tz="America/New_York" />'; ?> This is pretty simple PHP knowledge, so I'm under assumption you don't know PHP very well. I'd suggest that trying to make a Facebook app is not the best way to learn. Ads |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Integrating FBML and PHP in my facebook app? - Katie - 02-19-2014, 12:41 PM
[] - SkaNinja - 02-19-2014 12:42 PM
|
User(s) browsing this thread: 1 Guest(s)