[PHP] Code check

2006-05-29 Thread Paul Goepfert
Hi all, I wrote a php script that creates options for select boxes. What this script does is selects tomorrows date. However I have tested the code when the day is the last day of the month and the script blows up. Instead of displaying June it displays January and repeats the months 12 times I

[PHP] selecting current month from a database

2006-05-21 Thread Paul Goepfert
Hi all, I know this might be trivial problem but I can't seem to figure it out. Here is my problem I have a drop down menu where I have the months of year as menu items. I want to be able to have the current month be the selected month. I have tried using the date function as the way to set

Re: [PHP] Creating a Photo Album

2006-04-08 Thread Paul Goepfert
image url from the dB and displays it. Are you into programming or are you looking for someone to do it for you? tedd At 5:05 PM -0700 4/7/06, Paul Goepfert wrote: updating by user click for now. I might change that in the future to update by interval. Paul On 4/7/06, tedd [EMAIL

[PHP] Creating a Photo Album

2006-04-07 Thread Paul Goepfert
Hi all, I am postilng pictures up on a website. So far I have a picture per page. This will get not be very efficient as time goes on. Is there anyway that I can have one page with only the image updating? Can this be done in PHP. If it can would someone explain it to me. The only thing I

[PHP] PHP Book Recommendation

2006-04-07 Thread Paul Goepfert
Hi all, Can anyone tell me a good php book to buy. I already have Web Database Applications with PHP MySQL by O'Reilly. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating a Photo Album

2006-04-07 Thread Paul Goepfert
updating by user click for now. I might change that in the future to update by interval. Paul On 4/7/06, tedd [EMAIL PROTECTED] wrote: At 12:13 AM -0700 4/7/06, Paul Goepfert wrote: Hi all, I am postilng pictures up on a website. So far I have a picture per page. This will get

[PHP] Re: mysql_fecth_array() and function call as parameter

2006-04-03 Thread Paul Goepfert
with out any errors. And this code works on a different web server. Mysql client version 3.23.49. However it does not work on mysql client version 3.23.54. Also both php versions are the same. Thanks Paul On 4/3/06, Jon Drukman [EMAIL PROTECTED] wrote: Paul Goepfert wrote: function

[PHP] Not sure if this is a php problem or a mysql problem

2006-03-28 Thread Paul Goepfert
Hi all, I have developed a php functilon that is to return the date +1 from a Mysql database. My sql statement is as follows SELECT dayNum FROM Days Where dayNum = day(curdate())+1; The function works great on the intended webserver but when placed on a different mysql server (The one I have

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Paul Goepfert
/06, Chris [EMAIL PROTECTED] wrote: Paul Goepfert wrote: I placed the echo statements in my code and I found out that my query was empty. I also went a step further and tested if I was getting the correct outputs from the queries that initially do at the beginning of the method. Instead

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Paul Goepfert
I finally got the function to work. However I have a problem with another function. It is almost exactly like the origional function but in this function I am determining the days instead of the month. I made the same changes to the days function as I did to the month function. However no

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Paul Goepfert
according to my SQL the month name ois going to be returned not the month number. m_id is the number equivlent to the month. months is the full name of the month. In my month method I did not change the case values to the month number and the function returns correctly. All I had to do was add

[PHP] mysql_fecth_array() and function call as parameter

2006-03-26 Thread Paul Goepfert
Hi all, I have wriiten a function that determines whether tomorrows date is the first of the month or not then returns a SQL string based on whether its the first of the month or not. According to my apache error logs I get an error that says: [Sun Mar 26 21:43:14 2006] [error] [client

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-26 Thread Paul Goepfert
Resource id#9. I don't get it. I tested the sql statement in MySQL that I have on my computer. It worked, Why wouldn't it give the same output through mysql_query()? Paul On 3/26/06, Chris [EMAIL PROTECTED] wrote: Paul Goepfert wrote: Hi all, I have wriiten a function that determines whether

[PHP] Mail function problems

2006-03-19 Thread Paul Goepfert
Hi all, Has anyone had this problem before? I have a web server that resides on a windows platform (According to phpinfo()). I used the php mail function to send out a test message to make sure that the mail function would work when needed. I sent out the test message and I didn't get an email

[PHP] regular expressions and Phone validation

2006-03-15 Thread Paul Goepfert
Hi all, I have one small problem I don't understand the preg_replace() method. I understand the gist of what it does but I still don't fully know what it does. I have read the entry in the php manual about this and I am still confused about it. I've never been any good with regular expressions.

[PHP] Creating forms dynamically

2006-03-14 Thread Paul Goepfert
Hi all, I have been working on a page where I have a form. I currently have the form in an else block with no access to it if I need to redisplay the form incase of errors. To be more specific I want to redisplay the page with the errors displayed. I would like to have the form coded once. It

[PHP] Re: Creating forms dynamically

2006-03-14 Thread Paul Goepfert
Class validation { //functions } if(isset($submit)) { //calls to validation code } else { //display webpage } On 3/14/06, Paul Goepfert [EMAIL PROTECTED] wrote: Hi all, I have been working on a page where I have a form. I currently have the form in an else block with no access

[PHP] Phone number validation

2006-03-12 Thread Paul Goepfert
Hi all, I am trying to validate phone numbers in a web form that I have created. I am using a regular expression to validate the phone number. It seems when I enter the phone number in the following ways I get errors (123) 456 7890 123 456 7890 (123) 456 - 7890 123 456-7890 I am using the

Re: [PHP] Phone number validation

2006-03-12 Thread Paul Goepfert
On 3/12/06, Curt Zirzow [EMAIL PROTECTED] wrote: On Sun, Mar 12, 2006 at 12:09:42PM -0700, Paul Goepfert wrote: Hi all, I am trying to validate phone numbers in a web form that I have created. I am using a regular expression to validate the phone number. It seems when I enter

Re: [PHP] Phone number validation

2006-03-12 Thread Paul Goepfert
-0700, Paul Goepfert wrote: On 3/12/06, Curt Zirzow [EMAIL PROTECTED] wrote: With US phone numbers I always use this approach to avoid what format people use to enter the phone: - Remove any non digit $check_phone = preg_replace('/[^0-9]/', '', $phone); I just want

[PHP] PHP/CSS/Javascript question

2006-03-11 Thread Paul Goepfert
Hi all, Is it possible to modify a table using JavaScript to control CSS visabilty when the entire table is developed dynamically using PHP? Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] output Today's date

2006-03-04 Thread Paul Goepfert
Hi all, ls there anyway I can set the date to the timezone of the clients timezone? For example, if a person opens the web page at 3/6 12:01 EST and another person opens the same page at 3/5 10:01 MST I would like the date to be the above days on the client computers. I know everyone knows this

[PHP] Displaying Form Errors

2006-03-02 Thread Paul Goepfert
Hello all, I am building a web page and I don't know how to display the errors that the user may enter. OK this is how I have my web page setup: I first do a isset check on $submit. And I am not sure about this. I believe that this variable is set when i click on the submit button. I don't

[PHP] How do I output error messages

2006-02-21 Thread Paul Goepfert
Hi all, I have a web page that I am doing valildation on. I have figured out how to at least get the page to load the page content. What I can't seem to figure out is how to output the error messages to the screen. The validation is being performed on the same page as the form that is being

Re: [PHP] How do I output error messages

2006-02-21 Thread Paul Goepfert
$submit is soppose to be set when the user submits the web form for validation. I am not sure but is there soppose to be a $submit = input type=submit name=submit value=submit statement? Paul On 2/21/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] if (isset($submit)) { //vaildation code

Re: [PHP] attaching MySQL 5.0.18 to PHP 4.4.2

2006-02-17 Thread Paul Goepfert
I forgot to mention that that php and mysql are installed on a windows machine which means I didn't have to run the configure script that would associate mysql with php. How do I do this on a windows machine? Paul On 2/17/06, Kim Christensen [EMAIL PROTECTED] wrote: On 2/17/06, Paul Goepfert

[PHP] attaching MySQL 5.0.18 to PHP 4.4.2

2006-02-16 Thread Paul Goepfert
Hi all, I know the subject doesn't seem too clear so here is what I am talking aboukt. I recently installed php on my windows machine. The PHP compiler works great. However upon looking through the phpinfo () document I noticed that the MySQL client version was 3.23.49. I assume that is the

[PHP] installing php 4.4.2 on windows system

2006-02-15 Thread Paul Goepfert
Hello all, I have been developing a php website. I have been ftping my php web pages to a webserver and that works hkowever I don't have an error log on the webserver. So I downloaded apache 2.0.55. I am doing a manual installation and I am at the point where it tells me where to place the

Re: [PHP] Class/functions question

2006-02-14 Thread Paul Goepfert
Does anyone know where I can find the error log? I am using php on a webserver and the only log I found was a connection log in the logs dir on my webserver. Paul On 2/14/06, Jochem Maas [EMAIL PROTECTED] wrote: Paul Goepfert wrote: I was able to get part of my page to load when I created

Re: [PHP] Class/functions question

2006-02-13 Thread Paul Goepfert
with this? By the way I am calling $_POST[name] as the parameter to be passed into the function so my php code looks like: ?php $a = new Validation; $a-checkEmpty($_POST[name]); ? Paul On 2/12/06, Chris Shiflett [EMAIL PROTECTED] wrote: Paul Goepfert wrote: I know how to call functlions, I just just don't know

[PHP] Class/functions question

2006-02-11 Thread Paul Goepfert
Hi all, I building a website with PHP. I am going to be using functions to deal with vaildation. I am putting all the methods in a class called Validation. My problem is I do not know how to call the function. Well I shouldn't say that. I know how to call functlions, I just just don't know

[PHP] vaidation and mail function question

2006-02-09 Thread Paul Goepfert
I am beginnging to do vaidation on my web form and I know of a few functions to do this with. For example the empty fuction and the is_ functions. Ok to give you a picture of what I am vaildating its just your basic form, Name, Address, Email. I am obviously going to check for empty fields.

Re: [PHP] can't output sql query with php code.

2006-02-06 Thread Paul Goepfert
Thanks everyone for your help. I should have seen the semi-colon at the end of the while loop. I must have looked at the code 20 times and I can't believe I missed it. Paul On 2/6/06, Brady Mitchell [EMAIL PROTECTED] wrote: ?php echo 'select name=month \n'; $month_query =

[PHP] Is this the most effient to do with php an mysql?

2006-02-06 Thread Paul Goepfert
Hi all, I have a table of years going from 1985 - 2008. These years represent the purchase year. I have created a SQL statement that selects the years that are available for purchase years. For example 2006 -1985. Here is the SQL statement I created to produce that output. SELECT y_id, year

Re: [PHP] Is this the most effient to do with php an mysql?

2006-02-06 Thread Paul Goepfert
;, $year); $Result = mysql_query($Query); May I ask you what you are using this table for? /Peter -Original Message- From: Paul Goepfert [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 7:55 AM To: php-general@lists.php.net Subject: [PHP] Is this the most effient to do with php

[PHP] can't output sql query with php code.

2006-02-05 Thread Paul Goepfert
Hi all, I have a mysql database setup to use with my php web page. I have been able to access the database and get values into my drop down menus. However when I tried to output the contents into two two diferent variables the code does not work. To be more specific I will show you the code

Re: [PHP] can't output sql query with php code.

2006-02-05 Thread Paul Goepfert
This is the full code for the code that doesn't work. ?php echo 'select name=month \n'; $month_query = mysql_query(SELECT m_id, months FROM Month); while ($r = mysql_fetch_array($month_query)); { $v = $r[m_id]; $out = $r[months];

[PHP] Database question and PHP

2006-02-03 Thread Paul Goepfert
I have a MS Acess Database that goes along with my web page. I want to transfer the data to a MySQL database since there are php functions for the MySQL database. I do not have a MySQL database running on the system that I am developing the web page. However there is a MySQL database on the

Re: [PHP] questions regarding PHP and Forms

2006-01-28 Thread Paul Goepfert
: Paul Goepfert [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 9:28 PM To: php-general@lists.php.net Subject: [PHP] questions regarding PHP and Forms Hi all, I am writing my first website in php. I have a few questions. 1) I need to do vaildation on form values that I have entered

[PHP] questions regarding PHP and Forms

2006-01-27 Thread Paul Goepfert
Hi all, I am writing my first website in php. I have a few questions. 1) I need to do vaildation on form values that I have entered into a form. Is there a way I can write the vaildation code on the same page as the form in php? 2) I have a drop down menu on one of my form fields. What I

[PHP] need information on sending email using php

2005-09-02 Thread Paul Goepfert
Hi all, I am new to php. I am going to be setting up a page that has a form on it. When the user clicks on submit an email should be sent with the contents of the form. My question is How do I do that? the webserver that I will be placing this page on has php ver 4.4.0 on it. Any help would