Chapter 16 . PHP Development 477 echo User (Abyss web server)
Chapter 16 . PHP Development 477 echo User . $row[ user ] . is allowed to connect from: . $row[ host ] .
; } } function priv($user,$inhost) { # This subroutine looks up the grants for the given # user/host pair. $query = SHOW GRANTS FOR $user $inhost ; $result = mysql_query($query); $i = 0; if (! $result) { print No such grant
n ; } else { while ($grant = mysql_fetch_array($result) ) { print $grant[$i]
; $i++; } } } ?> Figures 16-18 through 16-21 show snippets of the PHP version, along with example runs of the program. Figure 16-18: The form built by the PHP version of the user manager
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.