Ok, you guys are awesome for helping me out, still getting errors though...
Am I maybe setting up my database incorrectly? Right now the value in FileName is just the name of the file; should it instead be a full address?
here's my code:
--password.php--
<?php
$connection= @mysql_connect ("localhost", "username", "password");
if (!$connection) {
echo( "<P>Unable to connect to " .
"database server at this time.</P>" );
exit();
}
mysql_select_db("database", $connection);
if (! @mysql_select_db("database") ) {
echo( "<P>Unable to locate information " .
"database at this time.</P>" );
exit();
}
$sql="SELECT FileName
FROM ClientCP
WHERE ClientID=$ClientID
AND Password=$Password";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
print "<a href=\"$row[FileName]\">".$row[FileName]."</a>";
?>
and here's the error:
Warning: Supplied argument is not a valid MySQL result resource in /this/site/password.php on line 23