Read my second answer... I find very strange that closing curly bracket
*}* after the </FORM> tag. Try to remove the closing one from the *ELSE*
statement.

> -----Original Message-----
> From: Shiloh Madsen [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 07, 2002 2:33 AM
> To: CÚsar Aracena
> Subject: Re: [PHP-DB] Having more problems
> 
> Actually, its weird, this problem came up after I input this section
of
> the page:
> 
> mysql_select_db("GameDB",$LoginDB);
> if (! @mysql_select_db("GameDB") )
>     print "<p>Unable to locate the Game Database.</p>";
>     exit();
> }
> 
> If i delete that part, then my page displays normally. i tried adding
an
> } else { to it, but that gives me an error.
> 
> CÚsar Aracena wrote:
> 
> >At a first glance, it seems to me that the PHP part is ok. Maybe the
> >problem is in the HTML part of the page... try to put <SCRIPT> inside
> ><HEAD> and after <HEAD> start the body part with <BODY>. Also check
for
> >that extra double-quotes after the header image.
> >
> >
> >
> >>-----Original Message-----
> >>From: Shiloh Madsen [mailto:[EMAIL PROTECTED]]
> >>Sent: Sunday, July 07, 2002 2:07 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: [PHP-DB] Having more problems
> >>
> >>The newbie is still having troubles heh. Maybe some kind soul can
tell
> >>me what im doing wrong this time. This is the code for a page I am
> >>working on. When I try to bring up the page in a browser, I just get
a
> >>white page, instead of having the HTML display. Anyone able to tell
me
> >>why?
> >>
> >>
> >>
> >><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> >>
> >><html>
> >><head>
> >>    <title>Login Page</title>
> >></head>
> >><?php
> >>$dbhost = "127.0.0.1";
> >>$dbuser = "root";
> >>$db = "LoginInfo";
> >>
> >>$LoginDB=@mysql_connect($dbhost, $dbuser, $dbpass);
> >>if (! $LoginDB) {
> >>    print "<p>Unable to connect to the database server at this
> >>
> >>
> >time.</p>";
> >
> >
> >>    exit();
> >>} else {
> >>mysql_select_db("GameDB",$LoginDB);
> >>if (! @mysql_select_db("GameDB") )
> >>    print "<p>Unable to locate the Game Database.</p>";
> >>    exit();
> >>}
> >>?>
> >><style type="text/css">
> >>    body { color: white; background: black; }
> >></style>
> >><p align="Center"><img src="Banner.png" width="666" height="103"
> >>alt="D&D Resource Page" border="0">"</p>
> >><br><br><br><br>
> >><form name="Login" method="Post" action="<?echo $PHP_SELF?>">
> >>    <p align="Center">
> >>    Login: <input type="text" name="User Name">
> >>    Password: <input type="password" name="Password">
> >>    <input type="submit" name="Submit" value="Submit"
> >>    </p>
> >>
> >></form>
> >>
> >><?php
> >>}
> >>?>
> >>
> >></html>
> >>
> >>
> >>
> >>--
> >>PHP Database Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
> >
> >
> 



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to