hi, whats wrong with my terrible script?? im new at this
i blocked out the stuff thats sensitive with X's
it gets to test3, but test4 doesnt show up
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252">
<title>phptest</title>
</head>
<body>
test1
<?php
echo "test2";
$username='XXXX';
$password='XXXX';
$database='XXXX;
echo "test3";
$conn=mysql_connect('localhost',$username,$password) or die ("cant connect");
echo "test4";
@mysql_select_db($database,$conn) or die("oops, sql died");
echo "test5";
$query = "SELECT path FROM files";
$result=mysql_query($query);
$num=mysql_numrows($result);
$i=0;
echo "test6 $i";
while ($i < $num) {
$path=mysql_result($result,$i,"path");
echo "<b>$path<hr><br>";
$i++;
}
?>
test7
</body>
</html>