[PHP-DB] difference between two dates

2003-01-19 Thread Rajesh Fowkar
Hello, In my application I am accepting Day, Month and Year from a Select List. What I want to do is calculate the age of the person based on the above selection. $cboDD is the day variable $cboMM is the month variable $cboYY is the year variable I tried this : $dobtimestamp =

RE: [PHP-DB] difference between two dates

2003-01-19 Thread John W. Holmes
In my application I am accepting Day, Month and Year from a Select List. What I want to do is calculate the age of the person based on the above selection. $cboDD is the day variable $cboMM is the month variable $cboYY is the year variable I tried this : $dobtimestamp =

[PHP-DB] php - excel

2003-01-19 Thread David Rice
Just a question, is it possible to dynamically create an excel spreadsheet from data in a mysql database the excel sheet does not have to be displayed, just to be sent to print, to give better print quality than a webpage tables equivalent. Or is there another way of doing this?

RE: [PHP-DB] php - excel

2003-01-19 Thread John W. Holmes
Just a question, is it possible to dynamically create an excel spreadsheet from data in a mysql database the excel sheet does not have to be displayed, just to be sent to print, to give better print quality than a webpage tables equivalent. Or is there another way of doing this? Easiest

[PHP-DB] Re: Apache/php will not start after upgrading Oracle from 8.1.7.3 to 8.1.7.4

2003-01-19 Thread Michael Mauch
Miguel Ward [EMAIL PROTECTED] wrote: Just upgraded my Oracle installation from 8.1.7.3 to 8.1.7.4. From that moment on, apache/php will not start (just hangs). Tried 'make'ing Apache and php again but same result. Checked oracle variables, etc and all seem to be okay (it was working

[PHP-DB] PHP.ini

2003-01-19 Thread Sabina A. Schneider
Sorry... here is the attach! Sabina Alejandra Schneider [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Fw: Windows 2000 problems

2003-01-19 Thread Sabina A. Schneider
I am writing to you to report a problem, which I haven't found in the FAQs and errors. I have installed Apache 1.3.27 for Windows, with PHP4 and Mysql 1.4 and when I try to see a page, that contains sessions there appears an error- window that says that Windows closes Apache, because it has

[PHP-DB] is this possible?

2003-01-19 Thread Addison Ellis
hello, i have a page where the user selects a category. they are directed to a page that takes them to subactegory and displays the subcategory according to category id. my question is can i from there direct them to a particular page from a list of a number of different pages according to

[PHP-DB] Array help please

2003-01-19 Thread Dave Carrera
Hi All I am trying to create a tld lookup script for uk and main us domains. I have success by creating multiple function hardcode the whois server and tld but I would love to be able to make an array of tlds then step through the array to check availability of domain. Example $arr =

[PHP-DB] Re: Email to a list of address in your database.

2003-01-19 Thread Adam Royle
This should work. You were on the right track, although you might want to use better var names so you don't get confused. You can see I have changed them to what I would normally use. Adam ?php $sql = select * from users; $result = mysql_query($sql, $connection) or die(Couldn't execute

Re: [PHP-DB] Array help please

2003-01-19 Thread Peter Beckman
$arr = array(.co.uk,.com,.net,.me.uk); echo Top Level Domains: ; while(list(,$tld)=each($arr)) { echo $tld., ; } On Sun, 19 Jan 2003, Dave Carrera wrote: Hi All I am trying to create a tld lookup script for uk and main us domains. I have success by creating multiple function hardcode the

[PHP-DB] export 2 values for function

2003-01-19 Thread Ruprecht Helms
Hi, how have I to define the calling and a function to work with two values exported to a function that return one result. Concret I want to include a grouped-price-function in a shopping-application. The function to find the right price needs the product_id and the quantity. It returns the

Re: [PHP-DB] Design suggestions - performance improvement

2003-01-19 Thread leo g. divinagracia iii
Matthew Nock wrote: Hi all, I am currently building a site for a cinema to display session times, film synopsis' etc... I have built the database as follows: TABLE: film_detail FilmID FilmName FilmRunTime FilmRating FilmSynopsis etc... TABLE session_data session_ID session_filmID

Re: [PHP-DB] Help with MySQL

2003-01-19 Thread leo g. divinagracia iii
Rodrigo Corrêa wrote: I´m new with MySQL, i´m just wondering if there is a way to get the IP from a MySQL Server, since i acess this by localhost in the webserver even if you could, the MYSQL admin probably set your account to access your data with a LOCALHOST permission only... so if

[PHP-DB] header?

2003-01-19 Thread Addison Ellis
hello, i have a page where the user selects a category. they are directed to a page that takes them to subactegory and displays the subcategory according to category id. my question is can i from there direct them to a particular page from a list of a number of different pages according to

Re: [PHP-DB] difference between two dates

2003-01-19 Thread Rajesh Fowkar
On Sun, Jan 19, 2003 at 09:34:02AM -0500, John W. Holmes wrote: I tried this : $dobtimestamp = mktime(0,0,0,$cboMM,$cboDD,$cboYY); $todaytimestamp = time(); $txtAge = ($todaytimestamp - $dobtimestamp)/86400; It does not give me the expected output. Can anybody suggest something ?