Jump to content

pls help me.. :-(


optiplex

Recommended Posts

dear friends...

i dont know whay i cant get the result... the error is:

 

Parse error: syntax error, unexpected T_VARIABLE in Z:\www\algebra\user\aff_report.php on line 89

 

tq

the coding :

<?

 

//echo $t_nick;

include "config.inc";

include "connect.inc";

$dep_date = date ("Y-m-d G:i:s");

$t_nick = $_GET['t_nick'];

?>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>xxxx.com</title>

<link href="../style.css" rel="stylesheet" type="text/css" />

</head>

 

<body>

 

<table width="90%" border="0" align="center">

  <tr>

    <td><h1>xxxx.com</h1></td>

  </tr>

  <tr>

    <td> </td>

  </tr>

  <tr>

    <td> </td>

  </tr>

  <tr>

    <td bgcolor="#CCCCCC"><h3>Affiliate Report </h3></td>

  </tr>

  <tr>

    <td> </td>

  </tr>

  <tr>

 

    <td><table width="50%" border="0" align="center">

      <tr>

        <td width="42%" bgcolor="#CCCCCC"><div align="center">

          <h5>Pendeposit</h5>

        </div></td>

        <td width="58%" bgcolor="#CCCCCC"><div align="center">

          <h5>Jumlah Deposit </h5>

        </div></td>

        <td width="58%" bgcolor="#CCCCCC"><div align="center">

          <h5>5% dari deposit </h5>

        </div></td>

      </tr>

 

  <?

 

  //cari org yg di intro

 

$query = mysql_query("SELECT * FROM deposit WHERE intro ='$t_nick'");

echo mysql_error();

 

if (mysql_num_rows($query) == 0) {

echo "<center>No Data</center>";

} else {

 

while ($r = mysql_fetch_array($query)) {

 

$did=$r[0];

            $t_nick=$r[1];

            $intro=$r[2];

            $dep_amount = $r[4];

           

$bil = $bil + 1;

$komisen = $dep_amount * (5/100);

 

  echo "

 

      <tr>

        <td>$t_nick</td>

        <td>$dep_amount</td>

        <td>$komisen</td>

      </tr> ";

  } }

  ?>

    </table></td>

  </tr>

</table>

</body>

</html>

 

Link to comment
https://forums.phpfreaks.com/topic/166905-pls-help-me/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.