[PHP] date formatting

2007-08-29 Thread Mike Ryan
I would like to have my users input the date formate as mm-dd- mysql wants the data to come down as -mm-dd. The question I have is how do I convert from the mm-dd- to -mm-dd so that I can write it out to the database? -- PHP General Mailing List (http://www.php.net/) To

[PHP] keeping fields moving forward

2007-08-21 Thread Mike Ryan
I am creating a series of forms that collect information this covers 3 screens before I want to write it out to the database. when I go from one screen to the next I have tried hidden and readonly input boxes but the data in the hidden and readonly fields from screen one do not make it to the

Re: [PHP] keeping fields moving forward

2007-08-21 Thread Mike Ryan
Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Ryan wrote: I am creating a series of forms that collect information this covers 3 screens before I want to write it out to the database. when I go from one screen to the next I have tried hidden and readonly input

[PHP] Re: keeping fields moving forward

2007-08-21 Thread Mike Ryan
I think I have it fixed I had some code wrong in my input hidden variable this worked and did the job for me I am an old time type of programmer who is not very good with the object oriented programming and have not taken the time to learn some new tricks. one day I will. Mike Ryan [EMAIL

[PHP] working with a pdf file and a mysql query

2007-06-22 Thread Mike Ryan
I have created a pdf form with php that prints out one record using php_show_xy statements but when I try to print out a query with multiple lines of data I get an error that reads Fatal error: Uncaught exception 'PDFlibException' with message 'Function must not be called in 'object' scope' in

[PHP] pdf and send to printer question

2007-06-19 Thread Mike Ryan
I am trying to get a query to run and outputed to a pdf file I get the following error Fatal error: Call to undefined function pdf_begin_document() in my php.ini I have php_cpdf.dll and php_pdf.dll enabled am I missing something.? also is there a way to send the document I create to the printer

[PHP] problems in WHERE statment

2007-05-23 Thread Mike Ryan
I am a newbie so please bear with me. I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where clause' this is the query command $query = 'SELECT * FROM `job listing` WHERE open =$today LIMIT 0 , 30

[PHP] format date field

2007-05-23 Thread Mike Ryan
I am reading in a date field from a mysql database the field on the screen shows up as 2007-05-01 on the screen I would like the field to show 05-01-2007 currently I am issueing the following command print $row['open']; how can I format this field??? while I am at it how can I accept the date

[PHP] date format from a database date field

2007-05-23 Thread Mike Ryan
Sorry I am a bit of a newbie with php and hope this has not been aswered a million times, but here it goes I have a date base with a couple of date fields when I pull up and display the fields it show 2007-05-21. the question I have is how to convert the field to 05-21-2007? Currently the