--- branches/paul/admin/include/fuzzy.php 2004/03/07 19:15:27 66 +++ branches/paul/admin/include/fuzzy.php 2004/03/18 19:24:54 67 @@ -33,8 +33,8 @@ /********************************************************** Function: resTitlePat -Original Author: Paul Bramscher -Last Modified: 03.19.2003 +Original Author: Paul Bramscher +Last Modified: 03.03.2004 *********************************************************** Comments: This function takes $string as input and builds eight @@ -54,7 +54,7 @@ pass7 = replacing 'ies' with 'y' pass8 = replacing 'y' with 'ies' **********************************************************/ -function resTitlePat($con, $string) { +function resTitlePat($string) { // Save this for display purposes $title = $string; @@ -146,7 +146,7 @@ // Debugging // printf("sql was: %s", $sql); - $rs = mysql_query($sql, $con); + $rs = mysql_tryquery($sql); $hits = mysql_num_rows($rs); if ($hits > 0) { @@ -155,16 +155,16 @@ // Table printf("\n"); - printf("

\n"); - printf("Messages:
\n"); + printf("
\n"); + printf("Messages:
\n"); printf ("Possible duplicate resource titles found with title '%s'. Are you sure you want to continue?

\n", $title); - while ($row = mysql_fetch_array ($rs)) { + while ($row = mysql_fetch_array ($rs, MYSQL_ASSOC)) { $title = $row["title"]; $resource_id = $row["resource_id"]; printf("Resource ID: %d ", $resource_id); - printf("Title: %s
", $title); + printf("Title: %s
\n", $title); } // this result set @@ -179,4 +179,4 @@ return $hits; } // end of php function -?> +?> \ No newline at end of file