barniegilly Posted September 3, 2011 Share Posted September 3, 2011 hi silly little question but if I want to bracket something inside PHP how do I do it eg my code is <th class="alignright"><?php echo $ass_descrip; ?> (<?php echo $ass_accro ; ?>) <?php echo FindTypeName ($type_id); ?></th> printing out British Eventing (BE) But the brackets at the moment are outside the PHP I want to put a conditional on it and include the brackets inside my conditional statement.? Quote Link to comment Share on other sites More sharing options...
voip03 Posted September 3, 2011 Share Posted September 3, 2011 $hello="Hello Freaks"; echo "(" . $hello .")"; Quote Link to comment Share on other sites More sharing options...
waynew Posted September 3, 2011 Share Posted September 3, 2011 You should keep the brackets outside of PHP. Quote Link to comment Share on other sites More sharing options...
voip03 Posted September 3, 2011 Share Posted September 3, 2011 waynewex You should keep the brackets outside of PHP. Please let me know that Why you should keep the brackets outside of PHP? Quote Link to comment Share on other sites More sharing options...
waynew Posted September 5, 2011 Share Posted September 5, 2011 waynewex You should keep the brackets outside of PHP. Please let me know that Why you should keep the brackets outside of PHP? Because if a non-coder wants to carry out work on a redesign, he/she doesn't want to/know how to mess around with PHP. Quote Link to comment Share on other sites More sharing options...
voip03 Posted September 5, 2011 Share Posted September 5, 2011 hmmm thats a good point *puts thumbs up* Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.