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);
?> We have a total of =$num?> members!
$query2="SELECT * FROM $table WHERE apr!='y'";
$result2=mysql_query($query2);
$num2=mysql_numrows($result2);
?>
(=$num2?> pending if ($num2 == "1"){ ?>member } else { ?>members } ?>)
$query="SELECT * FROM $table_u";
$result=mysql_query($query);
$num=mysql_numrows($result);
$i=0;
while ($i < $num) {
$last=mysql_result($result,$i,"date");
?>
Member listing last updated on =$last?>.
++$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.