News and/or Events
= now()
AND sec_id=70
AND type='n'
ORDER BY start_date ASC LIMIT 6;";
$result2 = mysql_query($query2) or die ("Query failed");
while($row =@ mysql_fetch_array($result2))
{
$displaydate = date("M j, Y", strtotime($row["start_date"]));
echo '
' . $row[title] . '
'.substr($row['detail'],0,900+strpos($row['detail'],' ')).'';
if(!empty($row['itype_1']))
{
echo "
![\"".$row['cap_1']."\" \"".](image.php?event=".$row[recid]."&image=1)
";
echo $row['cap_1'];
echo "
";
}
if(!empty($row['itype_2']))
{
echo "
![\"".$row['cap_2']."\" \"".](image.php?event=".$row[recid]."&image=2)
";
echo $row['cap_2'];
echo "
";
}
if(!empty($row['itype_3']))
{
echo "
![\"".$row['cap_3']."\" \"".](image.php?event=".$row[recid]."&image=3)
";;
echo $row['cap_3'];
echo "
";
}
echo "
";
}
$query3 = "SELECT *
FROM webq_events
WHERE end_date >= now()
AND sec_id=70
AND type='e'
ORDER BY start_date ASC LIMIT 6;";
echo "
";
echo "
Open Positions
";
$result3 = mysql_query($query3) or die ("Query failed");
while($row =@ mysql_fetch_array($result3))
{
$displaydate = date("M j, Y", strtotime($row["start_date"]));
echo '
' . $row[title] . '
'.substr($row['detail'],0,900+strpos($row['detail'],' ')).'';
if(!empty($row['itype_1']))
{
echo "
![\"".$row['cap_1']."\" \"".](image.php?event=".$row[recid]."&image=1)
";
echo $row['cap_1'];
echo "
";
}
if(!empty($row['itype_2']))
{
echo "
![\"".$row['cap_2']."\" \"".](image.php?event=".$row[recid]."&image=2)
";
echo $row['cap_2'];
echo "
";
}
if(!empty($row['itype_3']))
{
echo "
![\"".$row['cap_3']."\" \"".](image.php?event=".$row[recid]."&image=3)
";;
echo $row['cap_3'];
echo "
";
}
}
?>
Old News and Events