Obviously I'm new at this and I really appreciate any and all help.
I had someone develop the code you see below. It shows info from a database if the user has entered their info and thus has data to show.
If they haven't yet entered any data and the page is blank, then I would like to display a message to the users. (i.e. instructions on how to set up their account).
Could someone please show me how to change this code to include the "if/then" scenario I just described?
Here is the code:
{if $data.smsTable->data}
{table obj=$data.smsTable}
<table class="table" width="781">
<tr align="left" valign="middle">
<td ><strong>Number: </strong><a href="{$http_base}/edit.php?sms_id={$row.sms_id}">{$row.number_format}</a>{if $row.verification}*{/if}</td>
<td ><strong>Carrier: </strong>{$row.carrier}</td>
<td >{if $row.verification} N/A {else} {if $row.status=='active'}Focus Tool is <strong>On</strong> - Turn <a href="{$http_base}/user.php?action=deactivateSms&sms_id={$row.sms_id}">Off</a> {else}Focus Tool is <strong>Off</strong> - Turn <a href="{$http_base}/user.php?action=activateSms&sms_id={$row.sms_id}">On</a> {/if} {/if}</td>
<td ></td>
</tr>
<tr align="left" valign="middle">
<td colspan="4">
</td>
</tr>
<tr align="left" valign="middle">
<td ><strong>Min Delay: </strong>{$row.minimum_ts|ts_time_format}</td>
<td align="left" valign="middle"><strong>Max Delay: </strong>{$row.maximum_ts|ts_time_format}</td>
<td ><strong>Operating Days:<br>
</strong> {$row.when_display}</td>
<td ><strong>Operating hours:<br>
</strong>{$row.time_display}</td>
</tr>
<tr align="left" valign="middle">
<td colspan="4">
</td>
</tr>
<tr align="left" valign="middle">
<td ><a href="{$http_base}/edit.php?sms_id={$row.sms_id}">Edit</a></td>
<td ><a href="{$http_base}/user.php?action=deleteSms&sms_id={$row.sms_id}" onclick="return confirm('Are you sure you want to delete this number?');">Delete</a></td>
<td ></td>
<td ></td>
</tr>
</table>
Thanks in advance for any help you can give!