RE: [PHP-DB] Having more problems
| From: | Howard Picken | Date: | Sun, 07 Jul 2002 07:57:14 +0000 |
| Subject: | RE: [PHP-DB] Having more problems | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20368@lists.php.net to get a copy of this message | ||
Several things I've noticed.
One, you have not body tags in your code anywhere.
Just applying a style to the body doesn't (aas far as
I know doesn't declare it in your code.
Secondly, and I don't konw if you left it out
to protect the innocent, but you haven't supplied
a password for the database (assuming your using
passwords, which is advisable).
You are not doing anything with database either.
Are you trying to select a record from it or just
checking if exists?
Howard
-----Original Message-----
From: Peter Lovatt [mailto:pjln1@sunmaia.net]
Sent: Sunday, 7 July 2002 5:26 PM
To: Shiloh Madsen; php-db@lists.php.net
Subject: RE: [PHP-DB] Having more problems
You are missing a <body> tag to mark the start of the body, so all your
content will be part of the header, I think!
HTH
Peter
-----------------------------------------------
Excellence in internet and open source software
-----------------------------------------------
Sunmaia
www.sunmaia.net
info@sunmaia.net
tel. 0121-242-1473
-----------------------------------------------
> -----Original Message-----
> From: Shiloh Madsen [mailto:shiloh_madsen@nsc-support.com]
> Sent: 07 July 2002 06:07
> To: php-db@lists.php.net
> 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