![]() |
PHP question (help)
Please help me this work...
Code: (not Work) <?php echo do_shortcode('[twitter-feed mode="search" term="<?=$USERNAME?>"]');?> <?=$USERNAME?> not work in this echo code... Any help? |
change the < and ?= in front of $USERNAME to '.
then ? > to .' YES - you will have "'.$USERNAME.'" |
thats some messy code, why not use a widget?
|
try this
<?php echo do_shortcode('[twitter-feed mode="search" term="'.$USERNAME.'"]');?> |
You can't nest PHP within PHP.
|
Tis called concatenation:
<?php echo do_shortcode('[twitter-feed mode="search" term="' . $USERNAME . ']'); ?> Please tell me the USERNAME variable is populated by code written by someone cluefull. Tell me you're not setting that with code you wrote. It's cool that you're learning PHP. Both Rasmus and Linus know they have no business designing security systems though, so you're about a decade or two of intensive study away from being qualified to do so. |
What raymor said... use concatenation to weave in and out of php
|
Quote:
|
All times are GMT -7. The time now is 08:39 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123