brown2005 Posted April 26, 2006 Share Posted April 26, 2006 <?=show_counters($aset[counters]);?>i have this in an html tablebut i have now changed the html to php coding tables..how do i change this <?=show_counters($aset[counters]);?> to work properly please? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 26, 2006 Share Posted April 26, 2006 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 Quote Link to comment Share on other sites More sharing options...
brown2005 Posted April 26, 2006 Author Share Posted April 26, 2006 $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;} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.