Jump to content

cmgmyr

Members
  • Posts

    1,278
  • Joined

  • Last visited

    Never

Posts posted by cmgmyr

  1. You wouldn't need a loop, if-elseif-else are statements, you would need that.

     

    Try something like this:

    <?php
    
    $group = $_POST['group'];
    $num_people = $_POST['num_people'];
    
    if($group == "one-way"){
    $final_price = $num_people * 100;	//your price here
    }elseif($group == "one-way-first"){
    $final_price = $num_people * (300 * 125);
    }else{
    echo "Group unknown...";
    }
    
    ?>

     

    hope that helps

  2. sorry didn't see your last post...

     

    try something like this:

    <?php
    
    $variable = myfunction();
    
    for($i=0, $i<=count($variable), $i++){
    echo $variable[$i]."<br />";
    }
    
    function myfunction(){
    foreach ($str as $strval) {
    	$something[] = $strval;
    }
    
    return $something;
    }
    
    ?>

     

    *untested

  3. one thing you can do is edit the php.ini file but your script should not be timing out with only 75 users...something else is wrong. Is there any specific page that is timing out or the whole thing? I would look at your DB queries first to make sure none of them are trying to get way too much data.

  4. Cingular in the States all the way! I've had them since they were Cellular One...atleast 5 years ago. They have been great and are always getting better. Plus they have the best phones. I have a few phones with them and have never had any problems with the phones and/or billing. GSM is the way to go also and you get a SIM card instead of having it programmed into the phone. With a SIM card you can just take it out and put it in a new phone! Lastly...Cingular doesn't put a lot of extra crap and programs into their phones...like verizon. My friend and I have the same phone and his is verizon and you can see a noticable difference in performance.

  5. well i was talking about the video, but both are kinda gross...not that bad though.

     

    something to keep in mind though...you should look into doing what youtube does with "flagged" videos...users have to have an account and be over 18. I don't know if you have that or not cause I didn't even look, but it's an idea :)

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