MyBB Community Forums

Full Version: PHP help please
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys please help how to fix this code Dreamweaver shows error I am trying to create a plugin!!!!
$search = '<a href="{$mybb->settings['bburl']}';
Don't know what you are trying to do, but the correct syntax, I think, is:
$search = '<a href="'.$mybb->settings['bburl'].'">Link ...</a>';

Use Brackets or Sublime ...
(2013-12-20, 04:54 PM)marcus123 Wrote: [ -> ]Guys please help how to fix this code Dreamweaver shows error I am trying to create a plugin!!!!
$search = '<a href="{$mybb->settings['bburl']}';

$search = "<a href=\"{$mybb->settings['bburl']}";

See: http://www.php.net/manual/en/language.types.string.php
Thanks guys very much I am just starting to taste PHP code and as you can see I still suc* at it LOL