Tweaked SQL slightly.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1612 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan
2005-11-22 10:37:17 +00:00
parent 0fc3d78982
commit 01bf61363c
2 changed files with 3 additions and 2 deletions

View File

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

View File

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