------------------------------------
| Student | Grade | Course |
------------------------------------
| Jack | Grade B | Algebra 2 |
------------------------------------
Is this possible? Thanks for your help.
Moderators: macek, egami, gesf
------------------------------------
| Student | Grade | Course |
------------------------------------
| Jack | Grade B | Algebra 2 |
------------------------------------




<html>
<head>
<?php
// recipient
$to = 'somebody@aol.com' ;
// subject
$subject = 'test Email';
$result1 = mysql_query( "SELECT product, issueTime, hostServer, issue, impact, escalateTo, resolution,
technician
FROM nguyen_hien_duc_reports WHERE reportDate = '$today' AND shift = 'First'
ORDER BY product" )
or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result1);
//print "There are $num_rows records.<br><br>";
print "<table width=1240 border=1 >";
print "$today2 7AM - 4PM";
//print
"<tr><th>report_id</th><th>product</th><th>reportDate</th><th>issueTime</th><th>hostServer</th><th
>issue</th><th>impact</th><th>escalateTo</th><th>resolution</th>
print "<tr bgcolor=#00ffff><th><b>Product</b></th><th><b>Issue
Time</b></th><th><b>Host/Server</b></th><th><b>Issue</b></th><th><b>Impact</b></th><th><b>Esca
late To</b></th><th><b>Resolution</b></th>
<th><b>Technician</b></th></tr>";
while ($get_info = mysql_fetch_row($result1)){
print "<tr>";
foreach ($get_info as $field)
print "<td><center>$field</center> </td>";
print "</tr>";
}
print "</table>";
mysql_close($link);
?>
$myMessage =
$result1
// message
$message = '
$myMessage
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//Additional headers
$headers .= 'From: Joe <joe@aol.com>' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>
<html><head><title>Issues Display Record Today</title>
<style type="text/css">
body {text-align:center;}
th, td {font-family: tahoma, arial, verdana; text-align:center; font-size: 10pt; font-weight: 500}
</style>
</head>
<body>
<?
include('NGUYEN_HIEN_DUC/db_connection_info.inc');
$link = mysql_connect('localhost',$cs85Username,$cs85Password);
/* Change next two lines if using online*/
$db="albums";
//$link = mysql_connect('localhost', 'root', '');
if (! $link)
die(mysql_error());
mysql_select_db(albums , $link)
or die("Couldn't open $db: ".mysql_error());
mysql_select_db(albums , $link) or die("Select Error: ".mysql_error());
$day = mktime(0,0,0,date("m"),date("d"),date("Y"));
// $issue=$_POST['issue'];
$today = date("Y-m-d", $day);
$today2 = date("m/d/Y", $day);
$yesterday = date("m/d/Y", $day - 1);
$yesterday2 = date("Y-m-d", $day - 1);
// $issue=$_POST['issue'];
// $issueTime=$_POST['issueTime'];
$result1 = mysql_query( "SELECT product, issueTime, hostServer, issue, impact, escalateTo, resolution, technician
FROM nguyen_hien_duc_reports WHERE reportDate = '$today' AND shift = 'First'
ORDER BY product" )
or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result1);
//print "There are $num_rows records.<br><br>";
print "<table width=1240 border=1 >";
print "$today2 7AM - 4PM";
//print "<tr><th>report_id</th><th>product</th><th>reportDate</th><th>issueTime</th><th>hostServer</th><th>issue</th><th>impact</th><th>escalateTo</th><th>resolution</th>
print "<tr bgcolor=#00ffff><th><b>Product</b></th><th><b>Issue Time</b></th><th><b>Host/Server</b></th><th><b>Issue</b></th><th><b>Impact</b></th><th><b>Escalate To</b></th><th><b>Resolution</b></th>
<th><b>Technician</b></th></tr>";
while ($get_info = mysql_fetch_row($result1)){
print "<tr>";
foreach ($get_info as $field)
print "<td><center>$field</center> </td>";
print "</tr>";
}
print "</table>";
mysql_close($link);
?>



<html>
<head>
<?php
// connect to database
include('NGUYEN_HIEN_DUC/db_connection_info.inc');
$day = mktime(0,0,0,date("m"),date("d"),date("Y"));
// $issue=$_POST['issue'];
$today = date("Y-m-d", $day);
$today2 = date("m/d/Y", $day);
$yesterday = date("m/d/Y", $day - 1);
$yesterday2 = date("Y-m-d", $day - 1);
// $issue=$_POST['issue'];
// $issueTime=$_POST['issueTime'];
$link = mysql_connect('localhost',$cs85Username,$cs85Password);
/* Change next two lines if using online*/
$db="albums";
//$link = mysql_connect('localhost', 'root', '');
if (! $link)
die(mysql_error());
mysql_select_db(albums , $link)
or die("Couldn't open $db: ".mysql_error());
mysql_select_db(albums , $link) or die("Select Error: ".mysql_error());
// current db
$db_selected = mysql_select_db('albums', $link);
if (!$db_selected) {
die ('Can\'t use albums : ' . mysql_error());
}
// recipient
$to = 'daniel.hua@hypermediasystems.com' ;
// subject
$subject = 'test Email';
$result1 = mysql_query( "SELECT product, issueTime, hostServer, issue, impact, escalateTo, resolution,
technician
FROM nguyen_hien_duc_reports WHERE reportDate = '$today' AND shift = 'First'
ORDER BY product" )
or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result1);
//print "There are $num_rows records.<br><br>";
print "<table width=1240 border=1 >";
print "$today2 7AM - 4PM";
//print
"<tr><th>report_id</th><th>product</th><th>reportDate</th><th>issueTime</th><th>hostServer</th><th
>issue</th><th>impact</th><th>escalateTo</th><th>resolution</th>
print "<tr bgcolor=#00ffff><th><b>Product</b></th><th><b>Issue
Time</b></th><th><b>Host/Server</b></th><th><b>Issue</b></th><th><b>Impact</b></th><th><b>Esca
late To</b></th><th><b>Resolution</b></th>
<th><b>Technician</b></th></tr>";
while ($get_info = mysql_fetch_row($result1)){
print "<tr>";
foreach ($get_info as $field)
print "<td><center>$field</center> </td>";
print "</tr>";
}
print "</table>";
mysql_close($link);
?>
$myMessage =
$result1
// message
$message = '
$myMessage
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//Additional headers
$headers .= 'From: Daniel Hua <daniel.hua@hypermediasystems.com>' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>


Users browsing this forum: No registered users and 1 guest