Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion illmap_commented.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@

$con = mysqli_connect($dbhost,$dbuser,$dbpw,$dbname);

/* EDIT STEVEN BRAUN 2015-08-10 10:56 AM CST
In newer versions of PHP, json_encode() may fail on improperly encoded UTF text queried from MySQL.
To correct for this, add mysqli_char_set() to specify that text read through MySQL should be read as UTF-8 (or otherwise)
*/
mysqli_set_charset($con,"utf8");

// Create an array of statuses that indicate when requests open and close; these are statuses
// that come from the data itself and will be used to generate the visualization
$statusArray = array("initiateStatuses" => array("Submitted by Customer","Submitted via Lending Web","Imported from OCLC","Imported from DOCLINE"),"completeStatuses" => array("Checked Out to Customer","Request Finished","Delivered to Web","Item Shipped"));
Expand Down Expand Up @@ -923,4 +929,4 @@ function initializeAnimation() {

</script>
</body>
</html>
</html>