optiplex Posted July 22, 2009 Share Posted July 22, 2009 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 More sharing options...
haku Posted July 22, 2009 Share Posted July 22, 2009 Parse error: syntax error, unexpected T_VARIABLE in Z:\www\algebra\user\aff_report.php on line 89 Please tell us what line 89 is - I'm sure most people don't want to count! Link to comment https://forums.phpfreaks.com/topic/166905-pls-help-me/#findComment-880013 Share on other sites More sharing options...
optiplex Posted July 22, 2009 Author Share Posted July 22, 2009 line 89 is end of the coding.. after </html> thats y im confusing... tq Link to comment https://forums.phpfreaks.com/topic/166905-pls-help-me/#findComment-880016 Share on other sites More sharing options...
Q Posted July 22, 2009 Share Posted July 22, 2009 In that case you probably have a { or } too much somewhere Link to comment https://forums.phpfreaks.com/topic/166905-pls-help-me/#findComment-880024 Share on other sites More sharing options...
gijew Posted July 22, 2009 Share Posted July 22, 2009 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 https://forums.phpfreaks.com/topic/166905-pls-help-me/#findComment-880025 Share on other sites More sharing options...
haku Posted July 22, 2009 Share Posted July 22, 2009 Change your short tags (<?) to proper php tabs (<?php) and see if that helps. Link to comment https://forums.phpfreaks.com/topic/166905-pls-help-me/#findComment-880053 Share on other sites More sharing options...
optiplex Posted July 22, 2009 Author Share Posted July 22, 2009 sorry.. Link to comment https://forums.phpfreaks.com/topic/166905-pls-help-me/#findComment-880263 Share on other sites More sharing options...
haku Posted July 22, 2009 Share Posted July 22, 2009 It's not a sorry thing - I think that using short tags may be what is causing your problem! Link to comment https://forums.phpfreaks.com/topic/166905-pls-help-me/#findComment-880270 Share on other sites More sharing options...
optiplex Posted July 22, 2009 Author Share Posted July 22, 2009 btw tq friends... it was because overloaded '?>' muhahaha.. how silly i am.. so careless.. Link to comment https://forums.phpfreaks.com/topic/166905-pls-help-me/#findComment-880287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.