Changeset 3918 for trunk/tools/database


Ignore:
Timestamp:
Aug 2, 2000, 4:19:10 AM (25 years ago)
Author:
bird
Message:

Fixes. Changed database to Odin32.

Location:
trunk/tools/database/www
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/www/Odin32DBConnect.php3

    r3904 r3918  
    55 */
    66$db = mysql_connect("127.0.0.1", "root", "");
    7 $rc = mysql_select_db("odin32test", $db);
     7$rc = mysql_select_db("odin32", $db);
    88
    99?>
  • trunk/tools/database/www/Odin32DBHelpers.php3

    r3914 r3918  
    10241024                   "    f.equiv         AS equiv,\n".
    10251025                   "    f.time          AS time,\n".
     1026                   "    f.line          AS line,\n".
    10261027                   "    g.name          AS apigroupname,\n".
    10271028                   "    g.refcode       AS apigrouprefcode,\n".
     
    10681069            Odin32DBInfoRow1("API Group", $array, "apigroupname", "apigrouprefcode", "apigrouprefcode","","");
    10691070        Odin32DBInfoRow1("File", $array, "filename", "filerefcode", "filerefcode","not available","");
     1071        if ($array["line"] > 0)
     1072            Odin32DBInfoRow1("Line", $array, "line", "", "","","");
     1073        else
     1074            Odin32DBInfoRow1("Line", $array, "unavailable", "", "","not available","");
    10701075        if (isset($array["aliasrefcode"]))
    10711076            Odin32DBInfoRow2("Forwards", $array, "aliasdllname", "aliasdllrefcode", "dllrefcode","",".",
     
    21032108         */
    21042109        $sql = sprintf("SELECT\n".
    2105                        "    f.state,\n".
    2106                        "    COUNT(f.state)\n".
     2110                       "    state,\n".
     2111                       "    COUNT(state)\n".
    21072112                       "FROM\n".
    21082113                       "    function\n".
    21092114                       "WHERE\n".
    2110                        "    f.apigroup = %d\n".
    2111                        "GROUP BY f.state\n".
    2112                        "ORDER BY f.state",
     2115                       "    apigroup = %d\n".
     2116                       "GROUP BY state\n".
     2117                       "ORDER BY state",
    21132118                        $iRefcode);
    21142119        Odin32DBWriteStates($cFunctions, $sql, $db);
  • trunk/tools/database/www/Odin32GuidelineDocumentation.phtml

    r3914 r3918  
    6666CodeBeg();
    6767echo "
    68 /* \$Id: Odin32GuidelineDocumentation.phtml,v 1.2 2000-08-02 01:00:45 bird Exp $
     68/* \$Id: Odin32GuidelineDocumentation.phtml,v 1.3 2000-08-02 02:19:10 bird Exp $
    6969 *
    7070 * <i>&lt;insert file description here&gt;</i>
Note: See TracChangeset for help on using the changeset viewer.