1
I have a code snipit from another aplication I run.
It worked perfectkly prior to install XOOPS as all iot realy does is grab some numbers
<? include("./dweb_club/config.php");
$query="SELECT * FROM $table WHERE apr='y'";
$result=mysql_query($query);
$num=mysql_numrows($result);
?> <p>We have a total of <b><?=$num?></b> members!
<?
$query2="SELECT * FROM $table WHERE apr!='y'";
$result2=mysql_query($query2);
$num2=mysql_numrows($result2);
?> <br />(<b><?=$num2?></b> pending <? if ($num2 == "1"){ ?>member<? } else { ?>members<? } ?>)</p>
<?
$query="SELECT * FROM $table_u";
$result=mysql_query($query);
$num=mysql_numrows($result);
$i=0;
while ($i < $num) {
$last=mysql_result($result,$i,"date");
?>
<p><small>Member listing last updated on <?=$last?>.</small></p>
<? ++$i; } ?>
I removed all the <? tags and converted all the remaining HTMl to Echo statements (not so dis-similar to the ASP I learned at college).
Now it sits there like a lemon and does nothing.