ok that is fixed. ...lol...
Thank you Markus for that info. . . .sent me in the right direction.
User Profile
Collapse
-
-
-
how do I return to a different directory in PHP
I am writing a script that uses different directories to get php files and html files.
directory structure looks like this
/includes (directory to php files)
/secure (directory to HTML files)
/ (root directory to index.php)
I have been looking at the $_SYSTEM['DOCUMENT_ROOT'] and trying to get it to return the / directory, but it ends up going to the httpd/PRIMARY directory which is not in the same... -
took out that erroneous variable. . . . .leftovers from a bad idea.Leave a comment:
-
-
lol. I was just coming on to let you know that I fixed it, and it works. . . . I rewrote the section where it checks the database for the username and password so that it reflects the more secure mysql_real_esca pe_string and that part is working great as well.
that part is working great. . . . .but I have a LOOOOOONNNNNNNN GGGGGG way togo on this project. .. lolLeave a comment:
-
the problem I am seeing is that it never gets there. . . . I never see connect.php in the address bar of the browser, or will I?Leave a comment:
-
Here is the connect.php file
...Code:<?php // connect to the database needed function connect_dbase($DBase) { echo("connecting to data"); if ($DBase == "login") { $DB= "XXXXXX"; $uname= "apid"; $pword= "xxxxxx"; echo("user login"); } else if ($DBase == "users")Leave a comment:
-
Thank you!!!!!
I just read up on the escape characters.. . . . yikes
anyways Thank you very much. I have changed the code a bit to reflect mysql_real_esca pe_string that is a huge hole in my code. . . .Leave a comment:
-
No echo
I get a blank screen with the browser pointing at the login.php fileLeave a comment:
-
PHP login script displays blank
...Code:<?php include("connect.php"); include("dbaselevel.php"); session_start(); $username = $_POST['username']; $password = $_POST['password']; if ($username&&$password) { echo("checking username and password"); $open_data = connect_dbase("login"); $query = mysql_query("SELECT
No activity results to display
Show More
Leave a comment: