KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/academic/demo/academic/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/academic/demo/academic/volusiaSTreport.php
<?php 
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_StudentTrackerV = "mysql.web.rcn.net";
$database_StudentTrackerV = "academicassetmanagement_com";
$username_StudentTrackerV = "Admin";
$password_StudentTrackerV = "snarf16";
$StudentTrackerV = mysql_connect($hostname_StudentTrackerV, $username_StudentTrackerV, $password_StudentTrackerV) or trigger_error(mysql_error(),E_USER_ERROR); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_StudentTrackerV, $StudentTrackerV);
$query_Recordset1 = "SELECT * FROM `asset tagged textbooks` WHERE Student <> '' ORDER BY Student ASC";
$Recordset1 = mysql_query($query_Recordset1, $StudentTrackerV) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Volusia ST Report</title>
</head>

<body>
<table border="1">
  <tr>
    <td>Asset Tag</td>
    <td>ISBN</td>
    <td>Date Checked Out</td>
    <td>Student</td>
    <td>Title</td>
  </tr>
  <?php do { ?>
    <tr>
      <td><?php echo $row_Recordset1['Asset Tag']; ?></td>
      <td><?php echo $row_Recordset1['ISBN']; ?></td>
      <td><?php echo $row_Recordset1['Date Checked Out']; ?></td>
      <td><?php echo $row_Recordset1['Student']; ?></td>
      <td><?php echo $row_Recordset1['Title']; ?></td>
    </tr>
    <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>

Anon7 - 2021