b2k Posted February 18, 2008 Share Posted February 18, 2008 Getting error on line 67... I don't know why <?php include "config.php"; ?> <title><?php echo $row['header'] ?></title> <?php $fecha = date("d-m-Y"); if ( isset($_GET['id']) && is_numeric($_GET['id']) ) $id = $_GET['id']; else $id = false; if ( isset($_GET['s']) ) $pagina = mysql_real_escape_string(htmlspecialchars($_GET['s'])); else $pagina = false; if ( !$id && !$pagina ) echo ' <body dir="ltr" alink="#00ff00" background="dot.gif" bgcolor="#000000" link="#00c000" text="#008000" vlink="#00c000"> <center><table width="668" border="0" cellpadding="3" cellspacing="3" class="main"> <tr><td><img src="banner.jpg"><br><br> <table width="668" align="center" border="0"><tbody> <tr class="style13"> <td class="style13">-::jpjp</td> <td class="style13">-::jpjp</td> <td class="style13">-::jpjp</td> <td class="style13"></td> <td class="style13"></td> <td class="style13"></td> <td class="style13"></td> <td class="style13">-::jpjp</td> </tr> </tr></td> </td> <br> <center> <b>[ <a href="webapp.php" target="_self">webapps</a> ]</b> </center> '; $result = mysql_query('SELECT `id`, `pagina`, `header`, `fecha`, `contenido`, `contador` FROM `webapp` ORDER BY `id` DESC LIMIT 6'); while ( $row = mysql_fetch_assoc($result) ) echo ' <tr class="submit"> <td class="style14" nowrap="nowrap" width="62"> ' . $row['fecha'] . ' </td> <td width="375"> <a rel="shadowbox" class="option" title="'.$row['header'] . '" href="/webapp/'. $row['id'] . ' " target="_blank"> ' . $row['header'] . '.</a></td> <td nowrap="nowrap" width=40 align="left">' . $row['contador'] . '</td> <td width="9">R</td> <td width="9"></td> <td width="9"><a href="download.php?id='. $row['id'] . ' " target="_blank">D</td> <td width="9"></td> <td nowrap="nowrap" width=135 align="left">' . $row['pagina'] . '</td> Sayfa idsi olarak sadece sayi veya rakam girdiginizden emin olun. <br> <a href="index.php">[ Anasayfaya Dön ]</a> - <a href="#">[ Tekrar Dene ]</a></tr></td> </table></center> </body></html> else { $sql = 'SELECT * FROM `webapp` WHERE '; if ( $id ) $sql .= '`id` = ' . $id; else if ( $pag_ina ) $sql .= '`pagina` = \'' . $pag_ina . '\''; $sql .= ' LIMIT 1;'; $result = mysql_query($sql); $row = mysql_fetch_assoc($result); if ( !$row['id'] ) echo '<link type="text/css" rel="stylesheet" href="b0x.css"> <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon"></head> <body dir="ltr" alink="#00ff00" background="dot.gif" bgcolor="#000000" link="#00c000" text="#008000" vlink="#00c000"> <center><table width="668" border="0" cellpadding="3" cellspacing="3" class="main"> <tr><td><img src="banner.jpg"><br><br> Girdiginiz URL deki Sayfa Bulunamadi. <br> <a href="index.php">[ Anasayfaya Dön ]</a> - <a href="#">[ Tekrar Dene ]</a> </tr></td> </table></center> </body></html>'; else { echo '###################################<BR>'; echo '#'.$row['header'] . '<br>###################################<br><br>' . $row['contenido']; echo '<br><br># H4ck1ng.net [ '. $fecha . ' ]'; } //Sayaç $row['contador']++; mysql_query('UPDATE `webapp` SET `contador` = ' . $row['contador'] . ' WHERE `id` = ' . $row['id'] . ' LIMIT 1'); } ?> Quote Link to comment Share on other sites More sharing options...
mem0ri Posted February 18, 2008 Share Posted February 18, 2008 How about isolating line 67 with a few of the lines before and a few of the lines after...and posting what, exactly, the error is? Quote Link to comment Share on other sites More sharing options...
b2k Posted February 18, 2008 Author Share Posted February 18, 2008 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\wamp\www\webapp.php on line 67 Sorry! Quote Link to comment Share on other sites More sharing options...
b2k Posted February 18, 2008 Author Share Posted February 18, 2008 edited message Quote Link to comment Share on other sites More sharing options...
schilly Posted February 18, 2008 Share Posted February 18, 2008 After a quick look: while ( $row = mysql_fetch_assoc($result) ) needs a { } enclosure and the echo after that has no closing quotes with semi colon. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.