Jump to content

Parse Error


Xtremer360

Recommended Posts

Parse error: parse error in C:\wamp\www\My Backstage\backstage_libs\resultscompilation.php on line 114.

 

I know what to look for when dealing with parse errors but I'm just not seeing it.

 

<?php
                $query = "SELECT * FROM `efed_content_booking` WHERE `status_id` = '4' OR `status_id` = '5'"; 

                $result = mysql_query ( $query ); 
            	$rows = mysql_num_rows($result);
			if ($rows > 0)  {
			print'<table width="100%" class="table1">
                    <tr class="rowheading">
                        <td width=1> </td>
                        <td>Event</td>
                        <td align="center">Booking Date</td>
                        <td align="center">Results Template</td>
                    </tr>';
			$i = 0;
			while ( $row = mysql_fetch_array($result, MYSQL_ASSOC) ) {
				$eventstatus_id = $row['status_id'];
			    $eventname_id = $row['event_id'];
				$sClass = 'row2';
				if ($i++ % 2) $sClass = 'row1';
				printf ( "<tr class=\"%s\">", $sClass );
                    print "<td valign=\"top\" align=\"center\" width=\"30\"><a href=\"#\" onclick=\"ajaxpage('backstage_libs/eventname.php?option=2&id=".$row['id']."', 'content'); return false;\">Edit</a></td>";
				$eventname_data = mysql_fetch_assoc(mysql_query("SELECT * FROM `efed_list_shownames` WHERE `id` = '$eventname_id'"));
                    printf ( "<td valign=\"top\">%s</td>", $eventname_data['name'] );
                    printf ( "<td valign=\"top\" align=\"center\">%s</td>", row['bookingdate'] );
				$statusid_data = mysql_fetch_assoc(mysql_query("SELECT * FROM `efed_list_eventstatus` WHERE `id` = '$eventstatus_id'"));
                    printf ( "<td valign=\"top\" align=\"center\">%s</td>", $statusid_data['statusname'] );
                    echo '</tr>';
                 }
			echo '</table><br>';
		} else {
			echo '<span>There are no events to archive.</span><br /><br />';
		}
		?>

Link to comment
https://forums.phpfreaks.com/topic/205208-parse-error/
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.