Re: [PHP] PHP/MYSQL query error

2002-08-26 Thread Chris Crane
I got it working. It did not like the single quotes around the column names. "Chris Crane" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thank you. I will try that. > "Justin French" <[EMAIL PROTECTED]> wro

Re: [PHP] PHP/MYSQL query error

2002-08-26 Thread Chris Crane
; echo mysql_error(); > > That way, instead of "Query Failed" you'll get something meaningful... > probably something that will solve the problem. > > > Justin French > > > on 26/08/02 11:55 PM, Chris Crane ([EMAIL PROTECTED]) wrote: > > > Ini

Re: [PHP] PHP/MYSQL query error

2002-08-26 Thread Chris Crane
There are 15 columns and 15 pieces of data. In my second post I fixed this error and pasted it into PHPMYADMIN and it worked fine, but not here... "Chris Crane" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Initially there was an

Re: [PHP] PHP/MYSQL query error

2002-08-26 Thread Chris Crane
@000347D72515... > [snip] > /* Performing SQL query */ > $query = "INSERT INTO SignupRequests ('FirstName', 'LastName', > 'Address1', 'Address2', > 'City', 'State', 'Zip', 'Email', 'Phone', &#x

[PHP] Re: PHP/MYSQL query error

2002-08-26 Thread Chris Crane
ss2', 'City', 'State', 'Zip', 'Email', 'Phone', 'ContactMethod', 'Date', 'IP', 'Status', 'Comments') VALUES ('', 'Chris', 'Crane', '655 Talcottville Ro

[PHP] PHP/MYSQL query error

2002-08-26 Thread Chris Crane
; /* Performing SQL query */ $query = "INSERT INTO SignupRequests ('FirstName', 'LastName', 'Address1', 'Address2', 'City', 'State', 'Zip', 'Email', 'Phone', 'ContactMethod', 

Re: [PHP] PHP and Date()

2002-07-18 Thread Chris Crane
sorry about last message I want to get a list of the last 7 business days so I would have to loop through this and get each day correct? "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 001701c22e78$4494c970$8102a8c0@niigziuo4ohhdt">news:001701c22e78$4494c970$8102a8c0@niigziuo4ohhdt... > [sn

[PHP] PHP and Date()

2002-07-18 Thread Chris Crane
How can I look back Business Days. I would like to go back from a certain date, like 7 business days. Is there a simple way other then looping and checking for the day of the week? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code errors

2002-07-18 Thread Chris Crane
t ''; fclose($Data); } "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, Jul 18, 2002 at 10:14:25AM -0400, Chris Crane wrote: > > > Warning: Undefined offset: 5 in > > Means your arra

Re: [PHP] Code errors

2002-07-18 Thread Chris Crane
code the layout in like Dreamweaver and place the varaibles where I would like instead of the function writing out the html for me. Is that bad? "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, Jul 18,

Re: [PHP] Someone Help please

2002-07-18 Thread Chris Crane
Well, I posted it the first time and no one responded so I figured the subject did not interest anyone. I changed it. I am not sure how the third one started. But hey thanks for watching and giving you unwanted opinion. "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED

[PHP] Re: Code errors

2002-07-18 Thread Chris Crane
247: list($H_Date, $H_Open, $H_High, $H_Low, $H_Close, $H_Volume) = split(",", $Line); "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Which line in the script you had provided to us is line 247? > &

[PHP] Code errors

2002-07-18 Thread Chris Crane
I am trying some code and it works except I get the following errors... Warning: Undefined offset: 5 in c:\www\htdocs\demos\havasuinternet\havasuinternet-lib.php on line 247 Warning: Undefined offset: 4 in c:\www\htdocs\demos\havasuinternet\havasuinternet-lib.php on line 247 Warning: Undefined off

[PHP] Re: Includes vs. Functions

2002-07-17 Thread Chris Crane
I am not sure about efficiency, myself and I often ask this without much if anything at all for a response. However, I am the opposite of you, in that I prefer to create a library file containing all the functions. To make developing the page in something like Dreamweaver or Frontpage easier, I gl

Re: [PHP] Someone Help please

2002-07-17 Thread Chris Crane
each element of the > //current line, do what you will > } > > ---John Holmes... > > > -Original Message- > > From: Chris Crane [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, July 17, 2002 1:17 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Som

[PHP] Someone Help please

2002-07-17 Thread Chris Crane
I am getting data froma website for stock information. If I type in the brower the URL I get a text file display list this; Date,Open,High,Low,Close,Volume 16-Jul-02,7.92,8.10,7.68,7.82,605500 15-Jul-02,7.98,8.02,7.59,8.02,577200 12-Jul-02,7.80,8.00,7.57,7.95,411100 11-Jul-02,7.82,7.94,7.34,7.80,

[PHP] ARRAY_PUSH()

2002-07-17 Thread Chris Crane
I am getting data froma website for stock information. If I type in the brower the URL I get a text file display list this; Date,Open,High,Low,Close,Volume 16-Jul-02,7.92,8.10,7.68,7.82,605500 15-Jul-02,7.98,8.02,7.59,8.02,577200 12-Jul-02,7.80,8.00,7.57,7.95,411100 11-Jul-02,7.82,7.94,7.34,7.80,

[PHP] File reading help with Syntax

2002-07-17 Thread Chris Crane
I am getting data froma website for stock information. If I type in the brower the URL I get a text file display list this; Date,Open,High,Low,Close,Volume 16-Jul-02,7.92,8.10,7.68,7.82,605500 15-Jul-02,7.98,8.02,7.59,8.02,577200 12-Jul-02,7.80,8.00,7.57,7.95,411100 11-Jul-02,7.82,7.94,7.34,7.80,

Re: [PHP] Is there a way?

2002-07-16 Thread Chris Crane
Ok so let me ask one last question.. Which it faster, to run my function and part of the function would be to get data from a website and break it into variables then make all the html and variables one new variable for printing or Get my data put into variables made global and then in my HT

[PHP] Is there a way?

2002-07-16 Thread Chris Crane
In Perl you could print a block of information as it was written like this; print

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
return false; > } else { >return true; >} > } > > } > > ?> > > And now in any .php file you include this .obj file and use it as follows. > > $db1 = new mysqldb(); // create a new instance of the mysql objec

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
thanks Jay. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 000e01c22cdd$0d0c7530$8102a8c0@niigziuo4ohhdt">news:000e01c22cdd$0d0c7530$8102a8c0@niigziuo4ohhdt... > [snip] > This helps quite a bit Thank you. > I am just wondering if I should make classes instead of functions? What > would be th

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
Is there an advantage to Classes vs. Functions? "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 000c01c22cdb$11485c10$8102a8c0@niigziuo4ohhdt">news:000c01c22cdb$11485c10$8102a8c0@niigziuo4ohhdt... > [snip] > example? > [/snip] > > http://www.devshed.com/Server_Side/PHP/FormValidatorClass/page

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
t;passat", the properties relating to it's make and model, using the methods setMake and setModel. I'm sure this is right, but I'm sure I'm probably wrong (hehe, confused?). I'm also sure someone will correct me if I am! :o) Martin Clifford Homepage: http://www.complete

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
It helps a little bit, thank you. Could you provide some code as to what a Class looks like. I am just trying to understand it better and if I see it, it might help. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 000401c22cd8$54ce9ce0$8102a8c0@niigziuo4ohhdt">news:000401c22cd8$54ce9ce0$8102a

[PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
Could someone please explain the difference between classes and functions and how to use a class. I write alot of PHP, but I never understood this at all. I use an include statement in many of my pages and include a file with a bunch of functions. For instance, I might have a function called stock