Jump to content

Help with incorrect code for showing message to only 1 "id" in "tblclientgroups"


paperweight

Recommended Posts

I'm trying to figure out the current smarty/WHMCS syntax to place a message on my clientareahome.tpl only to one specific clientgroup.

 

I have 2 clientgroups, so 1 is id=1 and 2 is id=2.

 

I am using this current code but it is incorrect and showing the message to all users. I only ant to show it to id=2 in the tblclientgroups. What should I change?

 

{php}
include("support/dbconnect.php");
include("support/includes/functions.php");
$query = "SELECT * FROM `tblclientgroups` WHERE id=2"; 
$result = mysql_query($query);
while ($data = mysql_fetch_array($result)) {
   $id = $data["id"];
   echo '<div><p><strong>WELCOME:</strong> We appreciate your support and always welcome your feedback!</p></div>';
}
{/php}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated