Re: [PHP-DB] TIME CALCULATION IN PHP

2004-01-28 Thread W. D.
At 23:44 1/27/2004, Delz, wrote: >Hi All, > >How do i calculate time in PHP lets say I have this example > >Input Time Started : 9:00 >Input Time Ended : 13:00 > >Answer >Total Time in Hours : 4 >Total Time in Minutes : 240 What happens when they start at 23:59 and end at 01:30? This may nev

Re: [PHP-DB] MySQL - separating web and database servers

2004-03-18 Thread W. D.
At 09:20 3/18/2004, Adam Voigt wrote: >I don't understand, your ready to hack the MySQL extension, rather then >just use one of the free text editors, that let you mass replace all >your pages at once (which takes roughly 10 seconds)? Adam is right. Make backups of all the files, then do the edit

[PHP-DB] Display of fetched MySQL data?

2004-03-24 Thread W. D.
Hi Folks, I am trying to display a list of retrieved records, but can't seem to figure out how to do this properly. Here is what I am aiming for: \n"; // Loop through the fields for ($FieldIdx = 1; $FieldIdx <= NumFields; $FieldIdx++) { // Display the fields and associated data

Re: [PHP-DB] Display of fetched MySQL data?

2004-03-25 Thread W. D.
Thanks! mysql_fetch_assoc did the trick. At 07:08 3/25/2004, Ryszard Hapka wrote: >not only foreach ;) > >$r = mysql_query("select * from table"); >while($t = mysql_fetch_assoc($r)) { // or while ($t = >mysql_fetch_array($r)) <-- you will see difrends >foreach($t as $key => $value) { >

Re: [PHP-DB] Drop-down box in php

2004-04-20 Thread W. D.
At 10:53 4/20/2004, andy amol, wrote: >hi, > >Also if you can help me with a date validation program I will be grateful. You could use a Regular Expression: http://tinyurl.com/yr6up http://www.Google.com/search?q=regular+expressions+site%3Aphp.net Start Here to Find It Fast!™ -> http://www.US-We

Re: [PHP-DB] Real Killer App!

2003-03-14 Thread W. D.
At 01:58 3/14/2003, Nicholas Fitzgerald wrote: >As you guys know I've been going around in circles with this spider app >problem for a couple days. > >How would you do it? http://www.hotscripts.com/PHP/Scripts_and_Programs/Search_Engines/more3.html Start Here to Find It Fast!© -> http://www.U

Re: [PHP-DB] regex question

2005-03-07 Thread W. D.
At 11:04 3/7/2005, Chip Wiegand wrote: >I am writing some regex on a php form to validate input and have come up >with this, for example - > >if (empty($first) || !eregi("^[A-Za-z]+[- ]?[A-Za-z]+$", $first)) > >for checking a persons name. This allows a single name, or a hyphenated >double name,