Jump to content

burn1337

Members
  • Posts

    98
  • Joined

  • Last visited

    Never

Posts posted by burn1337

  1. Hmm personally I haven't had any experiance with php untill this year, and oop came extremely simplistic for me.  Easier to use then typical flow control for me, But also I would suggest php.net, they have an entire web-based manual for php including flow control, oop, as well as help with fronted database functions and objects.

  2. hhmm I don't see how you say tables are evil... personaly I don't care for divs, I do my layouts/templates with tables as well. for me its easier the layout is much more customizable or at least with my experiace so far it has been.

     

    Anyways if your using divs then I would suggest using css to control your input sizes, instead of % try just the size property within the input tags instead of the width property... It's worked for me before, it could help you.

  3. PFMaBiiSmAd I tried that I get

    Welcome,

    Notice: Undefined variable: SESSION in /usr/local/apache2/htdocs/sessions.php on line 39

    Monday September 1, 2008, 10:41:46 am

    Check

     

    it is set6

     

    after loggin in, recently it stopped displaying the UserName.

     

    after going to the next page I get this.

     

    Notice: Undefined index: UserName in /usr/local/apache2/htdocs/sessions.php on line 51

     

    Notice: Undefined index: Password in /usr/local/apache2/htdocs/sessions.php on line 52

    Welcome,

    Notice: Undefined variable: SESSION in /usr/local/apache2/htdocs/sessions.php on line 39

    Monday September 1, 2008, 10:43:25 am

    it is not setUid is null

     

    now all the code that is being used has already been posted anything else I may be missing? is my syntax screwed up? is my placement off? what am I doing wrong... btw when I open my cookie with epiphany, I get Expires : end of current session. I have as you can see set the expire time to 90 but it's still not working... could this be something a little more deeper then just php? or is it a picnic error?

  4. well I was kinda thinkin that too, but if I do it will still be used in my include file, Ill try it in the morning, btw you should check out my site, and if your interested I could use some one to assist me in getting the site done lol. anyways off to never never land night

  5. ok now I see what your triying to do sorry I'm very tired and my brain is half dead atm lol. uhh I would suggest doing a query that joins the two tables, if thats how you are trying to get it...

    if your wanting to get the one that are priced then change confirmed to 1?? or what it would be if it is priced..

    and you would get the same result without the while your not using any conditions so you should lol.

     

    or you could even try what projectfear said that would work better then what I said originally lmao

  6. I would use && instead of ||, and I would make the string for your query a variable, plus I would take a look at some of your syntax (most particularly your spacing) other then that I don't exactly see why its not working, although that could very well be, because of the fact that I'm very tired

  7. ok what that is, is object oriented programming

     

    the object becomes the variable $Variable

     

    to call a function within the object (e.g. SendText())

    $Variable = new TextTest; (The Variable becomes the object)

    $Variable->SendText($Text); now you have called the function from the object

     

  8. question, how many servers, or other computers/devices use the internet on your network? I have experiacned a few problems simular to that, although when I looked at my traffic I found no traffic, no outbound, no inbound. Shortly after I accendtly unplugged my server and my iptables stopped working, I still got the same thing but even still I find no outbound or inbound. Although I have found that yum was updating so seeing as your on fedora I would suggest checking that. Once I finally got yum to stop, then it stopped.

  9. The way I have it set up is so all I have is one include this way I just have to include the one file. It works, except for when I go to a new page (same include and all) then it just clears the data. I've even tried without the session_write_close() and still nothing. btw this isn't incorporated into my actual site, I'm trying to work out the bugs first lol

  10. well because the function $Sessions->SessionStart() is this:

    function SessionStart() {
    	//ini_set('session.use_cookies', 1);
    	//ini_set('session.use_only_cookies', 1);
    	ini_set('session.name', 'NewRealm');
    	session_cache_expire(90);
    	session_save_path('/usr/local/apache2/Session');
    	session_start();
    
    }

  11. Ok so I'm tyring to make a login script and the problem is that everytime I log in, only the page that logs me in has my session variables, everytime I try to go to a different page the variables are being lost

     

    $Session = new Sessions;
    $Session->SessionStart();
    
    if (!isset($_SESSION['Uid']) && !isset($_SESSION['UserName'])) {
    $login = new Login;
    $login->LoginBox();
    
    
    }
    else {
    $login = new Login;
    $login->LoggedInBox();	
    }

     

    function Login() {
    	$UserName = $_POST['UserName'];
    	$Password = $_POST['Password'];
    	$Pass = sha1($Password);
    	$query = new Query;
    	$query->GetUser($UserName, $Pass);
    	session_write_close();
    }
    

    function GetUser($UserName, $Password) {
    	$Check = "select * from Users where userName='$UserName' and password='$Password'";
    	$Temp = mysql_query($Check) or die("Sorry you must have the wrong UserName and/or Password"); 
    	$Row = mysql_fetch_array($Temp);
    	$_SESSION['Uid'] = $Row[0];
    	$_SESSION['UserName'] = $Row[1];
    	session_write_close();			
    }
    

     

    Any suggestions?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.