Jump to content


Photo

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


  • Please log in to reply
2 replies to this topic

#1 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 26 April 2006 - 02:51 PM

<?=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?

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 26 April 2006 - 02:55 PM

That is PHP. It is equivalent to
<?php echo show_counters($aset['counters']); ?>

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

Ken

#3 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 26 April 2006 - 03:30 PM

$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;
}




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users