[PHP-DB] Textarea, File Upload field setting values

2003-01-04 Thread Rajesh Fowkar
Hi, I can write a code like : Thus I can set the value of $txtfield1 and it is reflected in the above textbox. How can such thing be done with TextArea and File upload ? The above stuff is not working. Is it possible to accomplish the above stuff ? I need this since I am calling the same

[PHP-DB] inserting spaces in the select combo box

2003-01-12 Thread Rajesh Fowkar
Hi, I am trying to align the three values in the select combo box but it is not working. The code is below : for($nRow=0; $nRow < $nNumRows; $nRow++) { $aAns = pg_fetch_array($lResult, $nRow, PGSQL_ASSOC); $JoinedValue = $aAns[location_code] . $aAns[section_code] . $aA

[PHP-DB] Empty date passing to Postgres Stored Procedure from PHP

2003-01-16 Thread Rajesh Fowkar
Hi, In my application I am passing a date field to the postgres stored procedure. The problem is when the date field is blank. My code is like this : - Bill Date: ---

[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 = mktime(0,0,0,$cbo

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

Re: [PHP-DB] Basic HTTP authentication

2003-01-24 Thread Rajesh Fowkar
On Fri, Jan 24, 2003 at 11:50:09AM -0800, web man wrote: >hi GUys >Please this may sound too elementary but >I need your help. >How can I configure apache httpd.con file in >order to support the use of Basic HTTP authentication. >I am using apache 1.3.26 on windows. Take a look at the Apache man

Re: [PHP-DB] Help/Advice/Suggestions need to Upload 9 images on one submit button.

2003-01-27 Thread Rajesh Fowkar
On Mon, Jan 27, 2003 at 05:05:02PM +0100, Geckodeep wrote: >Hi, > >Can any one guide me through the uploading file procedure please? >Should I use copy() function to copy the image file to a temp file and >rename it to the real name and then reference the name in the data base. >Or is there any ot

Re: [PHP-DB] Help/Advice/Suggestions need to Upload 9 images on one submit button.

2003-01-28 Thread Rajesh Fowkar
On Tue, Jan 28, 2003 at 10:44:47PM +0100, Geckodeep wrote: >Hi Rajesh > > > >First of all I'd like to thank you for your time. No hassles. > >I got the script working in a way that it feeds my DB table, but I am >getting this error message: Warning: copy() [function.copy]: Unable to >access in u

Re: [PHP-DB] Make thumbnail of a jpg image.

2003-01-30 Thread Rajesh Fowkar
On Thu, Jan 30, 2003 at 09:41:37PM -0800, Rene Groothuis (Aeqis) wrote: >Hi All, > >Small question: How can I make a thumbnail of a jpg image? > >Your help is appreciated. Take a look at the following Image manupulation functions in PHP : ImageCreateFromJPEG() ImageCopyResized() ImageJPEG() P

[PHP-DB] php & oops

2003-02-11 Thread Rajesh Fowkar
Hello, Is there any site which contains some tutors or some details regarding OOPS (Object Oriented Programming) using PHP ? Thanks in advance. Peace -- Rajesh : [ GNU/Linux One Stanza Tip (LOST) ]### Sub : Console boot (debian systems) LOST #045 To bo

[PHP-DB] php & date manupulation functions

2003-02-15 Thread Rajesh Fowkar
Hello, There seems to be very few date manupulation functions in php. In my php form I am displaying select combos for day, month and year. Now while updating the form I want to retrieve the date and take out day, month and year from that date and display the correct selection in the combo. I co

Re: [PHP-DB] Re: php & date manupulation functions

2003-02-16 Thread Rajesh Fowkar
On Sun, Feb 16, 2003 at 08:14:57AM -0800, David Chamberlin wrote: > > >David Elliott wrote: >>try >> >>>echo date("d",$dbdate).""; >>echo date("m",$dbdate).""; >>echo date("y",$dbdate).""; >>?> > >I thought date() took a timestamp, not a string. Here's what I do: > >$timestamp = $dbdate; >echo da

[PHP-DB] php and local printing

2003-03-03 Thread Rajesh Fowkar
Hello, What is the best way to print on a locally connected printer from php ? For printing we want to give the user three options : 1. Screen 2. Local Printer 3. Server Printer What you guys are using for printing on locally connected printer from php. Thanks in advance. Peace -- Rajesh :

Re: [PHP-DB] php and local printing

2003-03-04 Thread Rajesh Fowkar
On Tue, Mar 04, 2003 at 06:45:54AM -0800, Mark wrote: >It dopesn't seem like you got an answer to this. Spot on. Yours is the first reply. >To print locally, >you'll need to use Jscript of something similar on the local end. >I've only seen this work in IE, but I haven't looked into it too >dee

[PHP-DB] textarea data and printing

2003-03-12 Thread Rajesh Fowkar
Hi, We are accepting Detailed description of the item in . Is there any function which can return full words without breaking the lines. The data is stored in a PostgreSQL database in varchar field. item_detail_description varchar(200) I am assuming that the user need not press the 'enter' key