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
Share on other sites

Nothing is jumping out at me. Have you tried removing parts of the PHP to try and narrow down where the problem is? If my eyes can't catch the problem I'll just remove chunk by chunk to see where the issue is.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.