RE: [PHP-DB] Session on PHP with MySQL
| From: | John W. Holmes | Date: | Sat, 11 Jan 2003 15:52:05 +0000 |
| Subject: | RE: [PHP-DB] Session on PHP with MySQL | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24775@lists.php.net to get a copy of this message | ||
> I have some confusing about my script, this is story
>
> I have login page, and then the user got current page with various
> menu, but when user click one of menu, its has error mesage, here my
> script
>
> <html>
> <p align = "center">
> <?
> //require "setup.php";
> require "common.php";
> include "setup.php";
> global $action;
> banner_login();
>
> $sql = "select user_name from iduser where user_name='$name' and " ;
> $sql = $sql . " user_pass = '$password' " ;
Where are $name and $password coming from? They probably have no value.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/