Jump to content

blackcell

Members
  • Posts

    439
  • Joined

  • Last visited

Posts posted by blackcell

  1. With some modification this should help. Nest your criteria and arguments around it. I pulled this from previous code I have used and I am 98% sure I had it working like I wanted.

    <?php
    //******************************************************************************
    //                  Loading Modules
    //******************************************************************************
        $moduleHandle = opendir('php/modules/');
        $x = 0;
        while(false !== ($moduleFile = readdir($moduleHandle))){
            if($moduleFile == ".")continue;
            if($moduleFile == "..")continue;
            if($moduleFile == "...")continue;
            if($moduleFile == "unused")continue; //<---This is an ignored file I used
    
    
            include("php/modules/$moduleFile");
    
            $x++;
        }
    
        if($showBack == "process"){
            echo"Modules Loaded Successfully: <b>$x</b><br>";
        }
        closedir($moduleHandle);
    //******************************************************************************
    ?>
    

    It basically crawls the directory and includes the files. I don't know if this is what you want but I have the feeling it might help.

  2. Try setting a javascript top.open function to your destination site when registered. If everything is satisfied:

    <?php
    if($login = "success"){
    
       $onLoad= "onLoad=\"top.open('success.php','_SELF')\"";
    
    }else{
    
        $onLoad = "";
    
    }
    ?>
    

     

    Now in your body tag do this:

    <body <?php echo $onLoad?>>
    

    I have used this in many cases and it works but you have to account for people with js disabled. So add a direct click link. I would set a variable equal to something like: If your not redirected shortly, click HERE and here would be your success.php href.

     

  3. Place echos in within each while loop to figure out how far you are making it into the mess. Evidentially your not satisfying some arguments if your returning a blank page because the if statements containing your echo's aren't true.

  4. So you want something like:

     

    page1.php

    //Display the first and last name

     

    page2.php

    //Display the department and phone number

     

    page3.php

    //Display the salary and start date

     

    OR something like

     

    page1.php

    //Display First Last Names, department, phone number, salary, and start date of the first 2 records in the database.

     

    page2.php

    //Display First Last Names, department, phone number, salary, and start date of the NEXT 2 records in the database.

     

    page3.php

    //Display First Last Names, department, phone number, salary, and start date of the NEXT 2 records in the database.

     

  5.  foreach($res as $x) $w[] = "blah = blah "; // change this 

     

    i dont exactly know what blah = blah should be

     

    first blah = the table field your are search by in the database.

    second blah = the criteria. So if your searching for all last names of dork

     

    `LastName` = 'dork'

        is the same as

    blah = blah (as stated)

  6. If you want to stick with the system you have just create a page called RUN.php or something. Create a js onload function that is recursive on a timed interval of like 10 seconds. Within that page put the single script to check if time is the desired time and then if so send the email. You can leave this page open on any system anywhere and it will work. I work with large scale business software that is written in VB? and it does crap like this and they get paid bukoo bucks for it. So its like a service on the system you run it on. Its not to shabby if you have a server that is running all the time. Just open the page on it and leave it running.

     

    Matter fact I think I will try this on a program I am writing now.

  7. Don't let the snide comments of others get you down. Everybody has to start somewhere and even though some people appear to be born with the ability to write php applications the norm is to learn over time.

     

    With that in mind remember that emotions are hard to interpret through text and can be commonly mis-interpreted. If somebody seems to be acting rude through their posts, it may be that that is the way they operate.

     

    Good Luck programming.

  8. Give the answer that proves to be most blond a value of N where N is the number of possible answers to the particular question. The next least blond answer N-1 next N-2 and so on until you have the least blond answer having a value of 1. Do this for each question. If the questions have the same number of answers divide the running total by the number of questions and set your classifications based upon the average.

     

  9. Yep, sorry FF3B5 is Firefox 3 Beta 5. I think it may have something to do with plugins because my boss jacked with his until he had it working but he said he couldn't really tell what exactly made it work. So I don't know but I would like to know how to correct the problem in the future because this makes twice this quirky problem has happened.

  10. I am looking for possibilities that may cause a problem for me. Here is the situation:

     

    PC1 is running FF3B5

    PC2 is running FF3B5 <---The same as PC1

     

    I have a javascript popup calendar that will allow you to click an icon. Once you do this a calendar pops up allowing you to select a date. When the date is selected it will put that date in a standard format.

     

    This works on PC1 but does not work on PC2 whenever they are on the same exact page using the same exact calendar?

     

    What gives?

  11. Are you displaying your variables after $_POST['name_of_checkbox'] to ensure the form works properly?

    Also, I have never tried to use a switch like this but usually I switch based on the variable. You switch () will declare what value will be checked in each case, I think.

  12. There is no limit on how long a session lasts if you use the bare minimum to create a session. The programmer can create a check that will reset a session if inactive for x amount of minutes. Otherwise I think sessions last until the browser is closed.

×
×
  • 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.