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
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 th
icks the picture, it increments and pulls the next
> 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 no
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
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
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 k.n
version
5.0.18-nt) and it worked 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:
> P
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 u
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
t
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 value
s unable to check
the php docs at php.net.
Thanks,
Paul
On 3/26/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
> &
that says "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:
> > H
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 192.168.0
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
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.
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
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 wo
r 12, 2006 at 01:48:28PM -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:
> > >
> &
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 p
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 ereg
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
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
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 ha
$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 =
statement?
Paul
On 2/21/06, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> if (isset($submit))
> {
> //vaildation code
> }
> else
> {
> //webpage
> }
> [/s
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 val
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
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 bu
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 php
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
way I am calling $_POST["name"] as
the parameter to be passed into the function
so my php code looks like:
checkEmpty($_POST["name"]);
?>
Paul
On 2/12/06, Chris Shiflett <[EMAIL PROTECTED]> wrote:
> Paul Goepfert wrote:
> > I know how to call functlions, I ju
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 ho
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. How
ar WHERE year <= %s ORDER BY year
> DESC;", $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:
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
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:
> > > echo '\n';
> > $month_query = mysql_query("SELE
This is the full code for the code that doesn't work.
\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"];
echo "$out\n";
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 bot
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 we
code examples : http://www.weberdev.com
> Free Uptime Monitor : http://uptime.weberdev.com
> PHP content for your site : http://content.weber-sites.com
>
>
> -Original Message-
> From: Paul Goepfert [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 27, 2006 9:28 PM
> T
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 wa
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
41 matches
Mail list logo