User Profile

Collapse

Profile Sidebar

Collapse
ehpratah
ehpratah
Last Activity: Jul 18 '12, 05:26 AM
Joined: Mar 31 '12
Location: philippines
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ehpratah
    started a topic how to compute excess hour
    in PHP

    how to compute excess hour

    hi i have a little bit of issue just thingking if somebody can give me a hand out here..

    the issue is when i compute for a car rate..it will depend on the date of rental and the return date,which is already coverd the problem is it will not really just depend on the date but also in time of return

    e.g
    format(yyyy-mm-d)
    startdate=2012-06-01
    pickup hour=06:00

    enddate=2012-06-02
    return hour=06:00...
    See more | Go to post

  • ehpratah
    replied to Whats wrong with my code
    in PHP
    well i got it already..with the help of some expert..
    See more | Go to post

    Leave a comment:


  • ehpratah
    replied to Whats wrong with my code
    in PHP
    hi i got it already but the problem is im getting wrong output

    here's the code

    Code:
    <?php
    
    $timezone = "Asia/Shanghai";
    if(function_exists('date_default_timezone_set')) date_default_timezone_set($timezone);
    echo date('d-m-Y H:i');
    
    /*These look like they are sent via form submit to this program*/
    $date1 = '2012-06-01'; // pick up date
    $date2 = '2012-06-01'; // return
    ...
    See more | Go to post

    Leave a comment:


  • ehpratah
    started a topic Whats wrong with my code
    in PHP

    Whats wrong with my code

    hi im having an error with my code can anyone help me try to fix my problem

    the error is

    Code:
    Fatal error: Call to a member function diff() on a non-object in C:\xampp\htdocs\msicfinal\samp.php on line 12
    and my code is

    Code:
    <?php
        /*These look like they are sent via form submit to this program*/
        $date1 = '2012-04-01'; // pick up date
        $date2 = '2012-05-27'; // return
    ...
    See more | Go to post

  • ehpratah
    replied to help with the formula to compute rate
    in PHP
    and if you need to see the actual web here is the link http://europcar1.com.ph/selfdrive.php

    just choose NO in the part that will ask you if you have a corporate accnt..thanks
    See more | Go to post

    Leave a comment:


  • ehpratah
    started a topic help with the formula to compute rate
    in PHP

    help with the formula to compute rate

    hi need a hand here..

    im having trouble in making my code work(well actually im not getting it)what i need to do is to compute the rate of vehicle that is rented..the only thing ta ht i came up is with the perday rate and the other 2 i cant find a way(i really sucks with formula )here is the thing..

    SELF - DRIVE RATES

    1. Minimum rental periods :
    Daily - 24 hours
    Weekly...
    See more | Go to post
    Last edited by ehpratah; Jun 21 '12, 06:06 AM. Reason: forgot something to add

  • ehpratah
    replied to whats wrong with this " if "condition?
    in PHP
    LOL..funny thing is i try to read the line almost a hundred times figuring were did i go wrong..just to find out that i place the wrong price..it almost took me 1 whole day just to find it out..bad bad bad..any way thanks
    See more | Go to post

    Leave a comment:


  • ehpratah
    replied to whats wrong with this " if "condition?
    in PHP
    well basically it will print for the price rate of the car depending on the origin,destinat ion,vehicle type,

    Code:
    $origin = 'NAIA 1';
    $vehicle = 'Van'; # switching with 'Innova' and 'Vios'
    $zone = 'Paranaque 2';
    $destination ='BACLARAN'or 'Luneta';
    $rate = 500;
    the output will be

    rate=500
    See more | Go to post

    Leave a comment:


  • ehpratah
    started a topic whats wrong with this " if "condition?
    in PHP

    whats wrong with this " if "condition?

    hi anybody can help me analyze this code..im not getting the correct output..

    Code:
    if(($origin=="NAIA 1" && $vehicle=="Small Car" && $zone=="Paranaque 2") && ($destination=="BACLARAN" || $destination=="SAN DIONISIO" || $destination=="BICUTAN INTERCHANGE" || $destination=="MULTINATIONAL VILLAGE" || $destination=="MOONWALK" || $destination=="SM
    ...
    See more | Go to post

  • ehpratah
    replied to problem with if statement help
    in PHP
    yeah thanks for the advice..i figured it out already but again thanks
    See more | Go to post

    Leave a comment:


  • ehpratah
    started a topic problem with if statement help
    in PHP

    problem with if statement help

    guys i'm having a really big problem right now..im trying to make a conditional statement using php but im having an logical error or syntax error..im trying to compute for the car rate but im not getting a correct output

    e.g

    i have a list of car which are "Small Car" "Innova" "Van" and there prices will depend on the location if the location is let say "Manila" or "Cam Sur"...
    See more | Go to post

  • well actually already made a code bout it here it is
    Code:
    <?php
    $origin =$_GET['txtpickup'];
    $word = "$origin";
    $word = strtoupper($word);
    echo "$word";
    ?>
    the problem is i can make it uppercase during the form is submitted..what i really want is when the word is type in my textbox in the first form it will change to uppercase..and i cant find a way to do it without using a jquery...
    See more | Go to post

    Leave a comment:


  • hi rabbit can you give me an example code bout it...thanks
    See more | Go to post

    Leave a comment:


  • ehpratah
    started a topic how to automatic text in a textbox all uppercase?
    in PHP

    how to automatic text in a textbox all uppercase?

    hi i'm just wondering on how can i make all the type text in my textbox all uppercase using php? tnx Alot..
    See more | Go to post

  • hi rabbit

    im having trouble using union can you give me an example code that is running because when i try to making sample search using UNION theirs an error saying

    Warning: mysql_fetch_arr ay() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs \msicrevised\se archerresults.p hp on line 32

    Code:
    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\msicrevised\searcherresults.php
    ...
    See more | Go to post

    Leave a comment:


  • How to search data from multiple table in mysql using php

    Hi guys I’m new to this site and i really need a professional help out here. I am trying to make a search form in my page and basically i can search my database already but i need to revised the code because the process of my search form depends on a dropdown menu
    which contains the table names in my database basically the searching will depend to the selected service form the dropdown menu. what i want to happen is to** eliminate the dropdown...
    See more | Go to post

  • ehpratah
    replied to How to search database using php
    in PHP
    hey dude i found an alternative i got it working but maybe its a bad coding i dunno..i use if statement
    See more | Go to post

    Leave a comment:


  • ehpratah
    replied to How to search database using php
    in PHP
    but table name must be dynamic and must cope with what the user choose in the form that he submit..or you have a better idea to do it..
    See more | Go to post

    Leave a comment:


  • ehpratah
    replied to How to search database using php
    in PHP
    what can you say bout it? on my own understanding the error is this part '%{$table}%' and '%{$search}%'
    See more | Go to post

    Leave a comment:


  • ehpratah
    replied to How to search database using php
    in PHP
    is their a problem with this part?

    Code:
     $sql = mysql_query ("SELECT * FROM '%{$table}%' WHERE Rnum LIKE '%{$search}%'");
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...