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? Link to comment https://forums.phpfreaks.com/topic/8465--/ 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 Link to comment https://forums.phpfreaks.com/topic/8465--/#findComment-30956 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;} Link to comment https://forums.phpfreaks.com/topic/8465--/#findComment-30971 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.