Thanks!!AbraCadaver wrote:Something like this should get you started. You just need to build an array of holiday dates and check that the same as checking the working days:
viewtopic.php?f=1&t=116365
Search found 8 matches
- Fri Jun 25, 2010 12:41 pm
- Forum: PHP - Code
- Topic: formula for tracking minutes/hours occurring during business
- Replies: 2
- Views: 109
Re: formula for tracking minutes/hours occurring during busi
- Fri Jun 25, 2010 9:48 am
- Forum: PHP - Code
- Topic: formula for tracking minutes/hours occurring during business
- Replies: 2
- Views: 109
formula for tracking minutes/hours occurring during business
Hello all! I hope you don't mind helping out a relative PHP noob (working with it for 3 months now, and yes... it's my first programming language). Here's what I need to do... I have a work-order system that is run off of a MySQL database, and I need to be able to track how long it takes for users t...
- Fri Mar 05, 2010 11:55 am
- Forum: PHP - Code
- Topic: if statement for Form field and database insert
- Replies: 1
- Views: 162
if statement for Form field and database insert
Here is a cut down version of what I'm doing... in the guts of my coding, I present a form field that is only active if a checkbox is checked (ie; Alternate Contact information) <input type="checkbox" name="alternate_contact" id="alternate_contact" onClick="docume...
- Fri Mar 05, 2010 9:30 am
- Forum: PHP - Code
- Topic: Syntax help...
- Replies: 2
- Views: 74
Re: Syntax help...
...... I promise, one day I will ask a hard questionWeirdan wrote:Code: Select all
$to = "{$firstName} {$lastName} <{$email}>";
Thank you so much!
- Fri Mar 05, 2010 9:18 am
- Forum: PHP - Code
- Topic: Syntax help...
- Replies: 2
- Views: 74
Syntax help...
I am trying to convert this static line: $to = "FirstName LastName <somewhere@something.com>"; To a dynamic, variable driven version: $to = "$wo_send_fname , $wo_send_lname , "<" $wo_send_email ">"; I know my syntax is completely messed up, but I can't for the life...
- Wed Mar 03, 2010 9:04 am
- Forum: PHP - Code
- Topic: newbie question about sending hidden form field
- Replies: 2
- Views: 263
Re: newbie question about sending hidden form field
In your second example, you don't use "print" or "echo". Therefore, nothing will be output from that block of PHP code. Also, in your first example, you use "$user->userID". In your second example, you use "$userID". Are you sure you didn't mean to use "...
- Wed Mar 03, 2010 8:05 am
- Forum: PHP - Code
- Topic: newbie question about sending hidden form field
- Replies: 2
- Views: 263
newbie question about sending hidden form field
I am trying to send the variable "userid" via a hidden form field on a php page... I know that if I type: <?PHP print 'userID: '.$user->userID.'<br />'; ?> it successfully outputs the userID assigned to the user (it's pulled from a get_session() function). However, I am stumped in terms of...
- Tue Feb 09, 2010 7:54 pm
- Forum: PHP - Code
- Topic: PHP - signup page (warning! noob coder!!)
- Replies: 0
- Views: 350
PHP - signup page (warning! noob coder!!)
Actually, please disregard this post... I'm realizing that all of the processing that takes place happens within the libraries that are being pulled in. Sorry! And, thanks for reading... I'm sure I'll be bring other questions to the forum :) . (disregard the original post:) I'm going to try and cove...