1
Matt_T_hat
PHP code broken by xoops!?
  • 2004/11/9 12:39

  • Matt_T_hat

  • Just popping in

  • Posts: 41

  • Since: 2004/11/9


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

"./dweb_club/config.php");
$query="SELECT * FROM $table WHERE apr='y'";
$result=mysql_query($query);
$num=mysql_numrows($result);
?> 

We have a total of  members!
$query2="SELECT * FROM $table WHERE apr!='y'";
$result2=mysql_query($query2);
$num2=mysql_numrows($result2);
?> ( 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 .


++$i; } ?>


I removed all the
Now it sits there like a lemon and does nothing.

2
dheltzel
Re: PHP code broken by xoops!?
  • 2004/11/9 13:31

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


You did leave a "", right?

Even included files need these tags, nothing is adding them implicitly.

Dennis

3
Matt_T_hat
Re: PHP code broken by xoops!?
  • 2004/11/9 13:51

  • Matt_T_hat

  • Just popping in

  • Posts: 41

  • Since: 2004/11/9


when I was experimenting with the system I found that a single require statement I had written only worked without the tags.

Login

Who's Online

432 user(s) are online (54 user(s) are browsing Support Forums)


Members: 0


Guests: 432


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits