LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2005, 05:04 AM   #1
Alexander.s
Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Slackware, Gentoo!
Posts: 115

Rep: Reputation: 15
How do i change the time intervalls?


Hello guys! My webmaster is taking for ever i need to change some bugs and i hope you guys can help me out!

iv changed some of it but iv got almost zero experience of programming.. :/

The thing is this website is for my fathers company.
Hes out doing some real estate jobs and it takes about 3 hours
but the script only says no when ppl book at the exact same time.
so if you booked 08 AM and someone else tried also to book at the same date
and 08 AM it would say no.. but if you booked 0830 AM it would say yes :/
and that doesnt work at all since my father isnt aviable for like 3 hours and some driving time excluded...
How do i fix this? i need some exact syntax help here im really new

Sry for my english as im not a native speaker just let me know what you cant figure out and il try to explain

thanks!

PHP Code:
  switch ($_GET['steg']) {
    case 
1:
        
sysCalendar(!isset($_GET['datum']) ? date("Y") : substr($_GET['datum'],0,4),!isset($_GET['datum']) ? date("m") : substr($_GET['datum'],5,2));
        break;

    case 
2:
        if (!isset(
$_POST['dDatum']) || $_POST['dTid'] == "")
        {
            
sysError('Felaktigt datum/tid, var god ange både datum och tid.<br><br><a href="javascript:history.back(1);">Tillbaka</a>');
            break;
        }
        if (
sysCheckDb(str_replace('.','-',$_POST['dDatum']).' '.substr($_POST['dTid'],0,2).':'.substr($_POST['dTid'],2).':00') == 'FALSE')
        {
            echo 
'Tiden du valde är redan bokad/upptagen. Var god prova en annan tid som passar dig.<br><br><a href="javascript:history.back(1);">Tillbaka</a>';
        }
        else
        {
            
sysForm($_GET['tjanst']);
        }
        break;

    case 
3:
        
sysConfirm($_GET['tjanst']);
        break;

    case 
4:
        
sysComplete();
        break;

    default:
        break;

 
Old 07-27-2005, 01:51 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It looks like you need to modify the "sysCheckDb" function.

If it uses an SQL database then you could probably just change the SQL command. If you post the contents of the "sysCheckDb" I might be able to give you more detailed help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
How to change the time...? crozewski Linux - General 3 05-15-2005 07:01 PM
Daytime Saving time. Cannot change time arubin Linux - General 9 11-06-2004 04:37 PM
Change time? fedivh Linux - General 12 04-21-2004 12:38 PM
Time for a change? RaTBoX Linux - Newbie 6 02-23-2003 01:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration