Smarty php help

Status
Not open for further replies.

Proximity

IDK?
Feb 13, 2014
673
56
Am I doing this right?

{include file="/home/USERNAME/public_html/tpl/connector_mysql.tpl"}
{php}
$phone_query = MYSQL_Query("SELECT value FROM info WHERE name = 'phone' ");
$email_query = MYSQL_Query("SELECT value FROM info WHERE name = 'email' ");
$phone = mysql_fetch_array($phone_query);
$email = mysql_fetch_array($email_query);
$fetched_phone = $phone['value'];
$fetched_email = $email['value'];
{/php}
<div class="column">
<h2>Contact Us</h2>
<ul class="contact">
<li><i class="fa fa-phone"></i>{php} echo "$fetched_phone"; {/php}</li>
 
Status
Not open for further replies.

Users who are viewing this thread

Top