Modified SQL statement slightly.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1592 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2005-11-16 10:25:37 +00:00
parent 1a7549ace3
commit b4d248bdcb
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if ( !canView( 'Events' ) )
$view = "error"; $view = "error";
return; return;
} }
$result = mysql_query( "select E.*,M.Name as MonitorName,M.Width,M.Height,M.DefaultScale from Events as E, Monitors as M where E.Id = '$eid' and E.MonitorId = M.Id" ); $result = mysql_query( "select E.*,M.Name as MonitorName,M.Width,M.Height,M.DefaultScale from Events as E inner join Monitors as M where E.Id = '$eid' and E.MonitorId = M.Id" );
if ( !$result ) if ( !$result )
die( mysql_error() ); die( mysql_error() );
$event = mysql_fetch_assoc( $result ); $event = mysql_fetch_assoc( $result );