86 Posted Topics

Member Avatar for chaitu11

You can try $endDate='2014-04-11'; $startdate='2014-04-01'; $daydiff = floor( ( strtotime( $endDate ) - strtotime( $startdate ) ) / 86400); echo $daydiff; it will count the day difference between the 2 dates

Member Avatar for diafol
0
321
Member Avatar for chaitu11

You need js to do it see this [sample](http://www.tutorialrepublic.com/codelab.php?topic=faq&file=jquery-show-hide-div-using-checkboxes)

Member Avatar for chaitu11
0
170
Member Avatar for johnef_sh

hi you can use something like an **identifier** that will be send together with the data in **contactsGo.php** where you will use a simple IF statement to check if the data is from that specific form or not. and base on the IF Statement you can use a simple **header …

Member Avatar for diafol
0
421
Member Avatar for Ambrish_1
Member Avatar for JorgeM
-1
212
Member Avatar for mattyd

Hi Just echo your submitted data in another page if you want something like a preview page before inserting it to DB as **rhodoscoder** suggested.. something like preview.php <?php echo $_POST['name']; ?>

Member Avatar for mattyd
0
277
Member Avatar for Simunji

Hi for client side you can add Javascript for form validation. when the submit button is click it will check your form element if its is empty or not..or if your using **html5** just use the new **required** attribute and for a server side validation use (PHP) just to be …

Member Avatar for eTechZambia
0
196
Member Avatar for Izzah_1

Hi if your gonna insert new data in the db why are you using UPDATE query? you need to use INSERT query like $query= "INSERT INTO studio(name,phone,`date`,time_from,time_till,studio) VALUES ('$name','$phone','$date','$time_from','$time_till','$studio')"; also mysql_real_escape_string is already deprecated refer to this [link](http://php.net/manual/en/function.mysql-real-escape-string.php) and you better use mysqli or pdo for the same reason

Member Avatar for ehpratah
0
212
Member Avatar for annyangel

then u better find someone that is willing to write it for you. coz no one here will just shove the answer in your mounth. better yet show us what u have and lots of guys here will be willing to help you out.

Member Avatar for annyangel
0
167
Member Avatar for ehpratah

Good Day Guys Im Having a hardtime getting this simple script working, basically im trying to open pop up windows when a link is click(which work fine until i found out that the same data is being fetch over and over again which is the last data inserted in the …

Member Avatar for ehpratah
0
203
Member Avatar for ehpratah

Good Day Guys So im having this issue with this site that i develop which is running 24/7 that eats a huge amount of bandwidth every time the page reload every 10sec using META TAG that is affecting our operations specifically our net connection. What i wanna know is if …

Member Avatar for ehpratah
0
360
Member Avatar for ehpratah

Good Day everyone I have 3 forms index.html , parent.html and popup.html just wondering how can i close parent.html and redirect it to index.html when the popup.html submit button is click? i already tried searching on google but i cant get any clear solution on how to achieved it. i …

Member Avatar for ehpratah
0
81
Member Avatar for iamthwee

Hi as **JorgeM** and **diafol** said you need to check if the user has the rights to access a certain page you need something like $level=$_SESSION['SESS_ACCESS_LEVEL']; if($level=='1') { header("location: access-denied.php"); exit(); }

Member Avatar for ehpratah
0
136
Member Avatar for game4tress

for it to show automatically you need a trigger to execute the query e.g page refresh or an ajax function that will refresh every x second . Care to shed us more details about it..? also can you show as your script ?

Member Avatar for ehpratah
0
216
Member Avatar for Rishav_1

Hi what have you tried so far..?just a suggestion 1st make a html / Php file with 4 radio button per question for the selection of answer then another file to handle the process when the submit button is click.maybe if you can show us something to start of we …

Member Avatar for ehpratah
0
141
Member Avatar for Anila_1
Member Avatar for ehpratah

Hi i have this query that search data between two date range `select RA, Name, Model, Plate, Service, Grand_total, Payment_type from advance WHERE SDate BETWEEN '" . $from . "' AND '" . $to . "' ORDER BY Payment_type` which is working great but i need to alter it so …

Member Avatar for ehpratah
0
162
Member Avatar for saucy6969

hi first you need to change you form action from ` <form action="#" method="post" id="sendemail">` to <form action="youraction.php" method="post" id="sendemail"> then can you show as your script on sending email as you've said you already have the script for it and by the way what you've posted is not yet …

Member Avatar for saucy6969
0
215
Member Avatar for GlenRogers

Hi just a thought try putting the $_SESSION['id']=$row['id']; inside the while statement in your first script.

Member Avatar for mmcdonald
0
168
Member Avatar for ehpratah

Hey guys im here again with another question on how to solve this specific problem i have, Whic is also releated on my last thread which is http://www.daniweb.com/web-development/php/threads/461702/cant-combine-two-sql-statement .. so the question now is i have this table Name Payment_type Service_charge test 1 Cash 10 test 2 Cash 20 test …

Member Avatar for ehpratah
0
187
Member Avatar for ehpratah

Good Day everyone(even if its already 10pm here) i know its seems very easy to some of you guys but seems i cant get an hold onto it.. so i have this query that search data between 2 date range(which is working fine) and another query that add all data …

Member Avatar for Rahul47
0
224
Member Avatar for ehpratah

Move this from JavaScript / DHTML / AJAX Good Day everyone i'm having a hardtime figuring out how to make this certain idea of mine to work basically im trying to capture the checkbox value and its label but im not getting anyluck..and also im having problem explaning what im …

Member Avatar for ehpratah
0
361
Member Avatar for amit.chaudhari.71

Hi you can use google charts its easy to integrate to your php and mysql script as mmc told you need javascript to accomplish it although you can also use plane php to achieved it but i will not really recommend it..

Member Avatar for <M/>
0
196
Member Avatar for ehpratah

Good Day everyone i'm having a hardtime figuring out how to make this certain idea of mine to work basically im trying to capture the checkbox value and its label but im not getting anyluck..and also im having problem explaning what im trying to do so i decided to attached …

Member Avatar for JorgeM
0
275
Member Avatar for ehpratah

Good Day everyone im having trouble in script right now basically im trying to make an if statement that will assign rate base on the destination, branch ,service and vehicle. which is working fine just a moment ago but when i add another array for another destination it seems that …

Member Avatar for ehpratah
0
125
Member Avatar for ehpratah

Good Day Everone Just wanna ask for a suggestion if it is possible to Save data in DB and at the same time Print the form when the submit button is clicked? and if possible how can i obtain it? Here's what ive tried form.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Member Avatar for happygeek
0
4K
Member Avatar for LegateLucius

hi just add another variable on the js which contain the php variable like this <?php $meat="cow"; ?> <script type="text/javascript"> var meat="<?php echo $meat; ?>"; document.write(meat); </script>

Member Avatar for mmcdonald
0
234
Member Avatar for ehpratah

Hey Everyone Im having a lil trouble rightnow making this script work. What im trying to do is make a script that will change the bgcolor color to red if the Serving time is less than or equal to 1 hr left which is working now but in the long …

Member Avatar for ehpratah
0
189
Member Avatar for ehpratah

Hi Guys wanna ask some assistance/ help I'm making something like notification with jquery and php and its working fine now the only problem that i encounter is on the notification its only show one data repeatedly its not showing the other data that supposed to be showed Here's my …

Member Avatar for ndeniche
0
633
Member Avatar for ultramel

you should put first the form inside a div and add a javascript to print only the object inside the div you can search google or other search engine to give you some ideas on how to do it..

Member Avatar for almostbob
0
206
Member Avatar for joshl_1995

i dont get what you're saying..if you just wanna retain the value of the textfield after submittion you just need to put in the textfield value like value="<?php echo "$tS"; ?>" like this <input type="text" name="tString1" value="<?php echo"$ts"; ?>"/>

Member Avatar for Webville312
0
209

The End.