What's wrong with this code? I can't fiqure out why none of my php programs work on the server except simple time scripts. It returns a parser error in line 26 but there is only 25 lines on the page. What's up with that? It is supposed to list databases but doesn't work.
Thanks,
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<?php
$user = "jhyers";
$pass = "careinx";
$db = "careinternet";
$link = mysql_connect( "localhost", $user, $pass );
if ( ! $link )
die ("Couldn't connect to MySQL" );
print "Successfully connected to server<P>";
mysql_select_db ( $db, $link )
or die ( "Couldn't open $db: ".mysql_error() );
print "Successfully selected database \"$db\"<P>";
$db_res = mysql_list_dbs( $link );
$num = mysql_num_rows( $db_res );
for ( $x = 0; $x < $num; $x++ )
print mysql_tablename( $de_res, $x )."<br>;
mysql_close( $link );
?>
</body>