I'm getting this error for my script:
Parse error: parse error, unexpected $ in /home/name/public_html/page.php on line 65
This is a blank line after the script ends. Must be something in the code causeing it but no idea what?
u know it helps when u axuli post the lines presenting the problem, r we meant to hack ur PC and steal the files?
Hey,
Blank lines are removed from the code so lines with code are only counted.
Can you show the code that is causing the parse error.
Yeah Sorry.
<? include('dbconnect.php'); include('font_setting.htm'); $query = ("select * from tbl_members where chapter='Aventura Lunch'"); $result = mysql_query($query) or die("Query fail"); //echo "<br> Result = ($result) <br>"; if (mysql_num_rows($result) == 0) { //echo "result = 0"; } else { //echo $row["chapter"]; echo "<CENTER>"; //echo "<font face="Arial, " size="2">"; echo "<table border=1>"; while($row = mysql_fetch_array($result)) { //if (empty($row['e-mail'])) { echo "<tr><td>" . $row['name'] . "</td> <td> " . $row['category'] . "</td> <td> " . "<a href=\"{$row['web_address']}\">{$row['business_name']}</a>". "</td> <td> " . $row['phone'] . "</td></tr>"; } /*else { echo "<tr><td>" . "<a href=\"mailto:{$row['e-mail']}\">{$row['name']}</a>" . "</td> <td> " . $row['category'] . "</td> <td> " . "<a href=\"{$row['web_address']}\">{$row['business_name']}</a>". "</td> <td> " . $row['phone'] . "</td> </tr>"; } */ } //echo "row =" . ($row); //echo "<a href=\"mailto:{$row['e_mail']}\">{$row['name']}</a><BR>\n"; //echo "<a href=\"http://{$row['web']}\">{$row['business']}</a><BR>\n"; echo "</table>"; echo "</font>"; ?>
<? include('dbconnect.php'); include('font_setting.htm'); $query = 'select * from tbl_members where chapter="Aventura Lunch"'; $result = mysql_query($query) or die("Query fail"); if( mysql_num_rows($result) == 0 ){ echo 'result = 0'; }else{ echo <<<EOF <center> <font face="Arial" size="2"> <table border=1> EOF; while( $row = mysql_fetch_array($result) ){ if (empty($row['e-mail'])){ echo <<<EOF <tr> <td>{$row['name']}</td> <td>{$row['category']}</td> <td><a href="{$row['web_address']}">{$row['business_name']}</a></td> <td>{$row['phone']}</td> </tr> EOF; } else{ echo <<<EOF <tr> <td><a href="mailto:{$row['e-mail']}">{$row['name']}</a></td> <td>{$row['category']}</td> <td><a href="{$row['web_address']}">{$row['business_name']}</a></td> <td>{$row['phone']}</td> </tr> EOF; } } echo '</table> </font>'; ?>