Jump to content

[SOLVED] if statement issues


Breana

Recommended Posts

I want it to read the table and if the value is less "needed 500" total on table 40 it will show the else option...

 

{if $user->user_info.user_points - 5000}

<table width='760' border='0' cellspacing='0' cellpadding='0'>

  <tr>

    <td width='171'>error no points</td>

</tr>

</table>

{else}

<form action='../submit.php' method='post'>able info here!

</form>

{/if}

 

But it don't work i have 5670 points and it says i have no points??

 

Link to comment
https://forums.phpfreaks.com/topic/105452-solved-if-statement-issues/
Share on other sites

Ok, it runs just like php but u can use it in the .tpl files.

example: "this code is Working"

{if $total_friends != 0}

      <table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>

      <tr><td class='header'>

        {$profile35} ({$total_friends})

         [ <a href='profile_friends.php?user={$owner->user_info.user_username}'>{$profile25} {$profile19}</a> ]

      </td></tr></table>{/if}

 

Output looks like this:

-------------------------

You have 36 friends.

link: Edit Friends List

-------------------------

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.