sorry for this but i have parused the board here and can't seem to find an answer. let me explain the scenario.
I have a web site set up that works currently. i developed it using dreamweaver and it works well. problem is at work, i have a modem to connect to the internet so things get kinda slow. to solve this problem I put up an apache/php system on my windows xp box. i installed everything correctly and the <?php phpinfo ?> thing works fine. i can even read stuff from the MySQL database i have set up. the problem i am getting is this though...
Notice: Undefined variable: myUsername_rsLogin in C:\Documents and Settings\Brian Katke.CPQ-PRESARIO120\My Documents\VicNic Systems\ce\login.php on line 16
now i'm not passing any variables from the url. i did find that my "register globals" thing wasn't set to on but i did set that and it still isn't wroking. since the web site works from the web (from my isp who has the php/mysql setup all done) i know the code works ok. the problem i am thinking is that it is not defining the variable in the page.
here is the start of the code
<?php
// Buzz inet PLSC02 - Login and Set Level
?>
<?php require_once('Connections/LootSystem.php'); ?>
<?php
// Buzz inet PLSC02 - Login and Set Level - Recordset
if (isset($HTTP_POST_VARS['username'])) {
$myUsername_rsLogin = (get_magic_quotes_gpc()) ? $HTTP_POST_VARS['username'] : addslashes($HTTP_POST_VARS['username']);
}
$myPassword_rsLogin = "0";
if (isset($HTTP_POST_VARS['password'])) {
$myPassword_rsLogin = (get_magic_quotes_gpc()) ? $HTTP_POST_VARS['password'] : addslashes($HTTP_POST_VARS['password']);
}
mysql_select_db($database_LootSystem, $LootSystem);
// Verify Login is correct
$query_rsLogin = sprintf("SELECT Userlogin, UserPassword, SecurityLevel FROM User WHERE Userlogin= '%s' AND UserPassword = '%s'", $myUsername_rsLogin,$myPassword_rsLogin);
$rsLogin = mysql_query($query_rsLogin, $LootSystem) or die(mysql_error());
$row_rsLogin = mysql_fetch_assoc($rsLogin);
$totalRows_rsLogin = mysql_num_rows($rsLogin);
thats where i'm at. if anyone out there can offer some assistance i'll forever be in your debt.
thanks in advance
Brian Katke
Newbie php dude