Jump to content

Archived

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

brown2005

<?=show_counters($aset[counters]);?>

Recommended Posts

<?=show_counters($aset[counters]);?>

i have this in an html table

but i have now changed the html to php coding tables..

how do i change this <?=show_counters($aset[counters]);?> to work properly please?

Share this post


Link to post
Share on other sites
That is PHP. It is equivalent to
[code]<?php echo show_counters($aset['counters']); ?>[/code]

What isn't working? Please post more of the script in question.

Ken

Share this post


Link to post
Share on other sites
$f = "on";

function count_info($what)
{
if($what == "domains")
{
$q11 = "SELECT COUNT(domains_id) FROM domain_trader_domains WHERE domains_status = 'Sale';";
}

$r11 = mysql_query($q11) or die(mysql_error());
$a11 = mysql_fetch_array($r11);

return $a11[0];
}

function show_counters($f)
{
global $dir;

$domains = count_info("domains");
$c = " <tr>
<td class='main_text' colspan='2'>We currently have <font class='search_count'>$domains</font> domains listed.</td>
</tr>\n\n";

return $c;
}

Share this post


Link to post
Share on other sites

×

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.