I am currently building a bulletin board or forum, written from my own code.
It must include registered users with user names and passwords.
I am running it from an ftp system, actually ftp.wpi.edu.
I am having trouble with the ftp login. Take a look at this-
// This is where we connect to the database for reading.
////////////////////////////////
mysql_pconnect("ftp.wpi.edu","sam","password")
or die("Unable to connect to SQL server");
mysql_select_db("tator_awtrey") or die("Unable to select database");
////////////////////////////////
// This is where we count the number of entries.
////////////////////////////////
$query = "SELECT COUNT(*) FROM guests";
$numguests = mysql_query($query) or die("Select Failed!");
$numguest = mysql_fetch_array($numguests);
?>
<!-- This is where we report the total messages. -->
<P>
<A HREF="guest.php?complete=1"><? echo $numguest[0]; ?> people</A> have
left me a message.
</P>
////////////////////////////////
It would be great if you could help me out. Thanks.