Announcement

Collapse
No announcement yet.

using php incude

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jamie
    Senior Member
    • Jan 2001
    • 180

    using php incude

    hi,

    I have some code in my php incude and this works fine. however when i put in this code;

    if ($bbuserinfo['userid']=0)
    {
    $texty=helo;
    } else {
    $texty=goodbye;
    {

    that i also want in there this code does not work and the other code stops working, can anyone help me? thanks
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    Maybe this works better:

    PHP Code:
    if ($bbuserinfo['userid'] == '0')
    {
    $texty "helo";
    } else {
    $texty "goodbye";

    Good luck!

    Comment

    • Jamie
      Senior Member
      • Jan 2001
      • 180

      #3
      sorry, copied it wrong into the page here! that code still causes the same problems, thanks tho

      Comment

      • Floris
        Senior Member
        • Dec 2001
        • 37767

        #4
        If it gives an error, then please post it here.
        If it stops other code from working, then please check the nesting of the if conditions.

        Make sure you have <div>$texty</div> in the template where it should show up.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎