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...
User Profile
Collapse
-
how to compute excess hour
-
well i got it already..with the help of some expert.. -
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'; // returnLeave a comment:
-
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
and my code isCode:Fatal error: Call to a member function diff() on a non-object in C:\xampp\htdocs\msicfinal\samp.php on line 12
...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 -
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..thanksLeave a comment:
-
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... -
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 thanksLeave a comment:
-
well basically it will print for the price rate of the car depending on the origin,destinat ion,vehicle type,
the output will beCode:$origin = 'NAIA 1'; $vehicle = 'Van'; # switching with 'Innova' and 'Vios' $zone = 'Paranaque 2'; $destination ='BACLARAN'or 'Luneta'; $rate = 500;
rate=500Leave a comment:
-
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
-
yeah thanks for the advice..i figured it out already but again thanksLeave a comment:
-
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"... -
well actually already made a code bout it here it is
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...Code:<?php $origin =$_GET['txtpickup']; $word = "$origin"; $word = strtoupper($word); echo "$word"; ?>
Leave a comment:
-
-
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.. -
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
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... -
hey dude i found an alternative i got it working but maybe its a bad coding i dunno..i use if statementLeave a comment:
-
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..Leave a comment:
-
what can you say bout it? on my own understanding the error is this part '%{$table}%' and '%{$search}%'Leave a comment:
-
is their a problem with this part?
Code:$sql = mysql_query ("SELECT * FROM '%{$table}%' WHERE Rnum LIKE '%{$search}%'");Leave a comment:
No activity results to display
Show More
Leave a comment: