[PHP] PHP/MYSQL query error

2002-08-26 Thread Chris Crane
SQL query */ $query = INSERT INTO SignupRequests ('FirstName', 'LastName', 'Address1', 'Address2', 'City', 'State', 'Zip', 'Email', 'Phone', 'ContactMethod', 'Date', 'IP', 'Status', 'Comments') VALUES ('', 'Chris', 'Crane', '655 Talcottville Road', 'Apt. 185', 'Vernon', 'CT', '06066

[PHP] Re: PHP/MYSQL query error

2002-08-26 Thread Chris Crane
', 'Status', 'Comments') VALUES ('', 'Chris', 'Crane', '655 Talcottville Road', 'Apt. 185', 'Vernon', 'CT', '06066', '[EMAIL PROTECTED]', '860-659-6464', 'Email', 'August 25, 2002', '64.252.232.82', 'Newly Requested', 'Testing'); $result = mysql_query($query) or die(Query failed

Re: [PHP] PHP/MYSQL query error

2002-08-26 Thread Chris Crane
ming SQL query */ $query = INSERT INTO SignupRequests ('FirstName', 'LastName', 'Address1', 'Address2', 'City', 'State', 'Zip', 'Email', 'Phone', 'ContactMethod', 'Date', 'IP', 'Status', 'Comments') VALUES ('', 'Chris', 'Crane', '655 Talcottville Road', 'Apt. 185', 'Vernon', 'CT'

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 error with too man

Re: [PHP] PHP/MYSQL query error

2002-08-26 Thread Chris Crane
d 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: Initially there was an error with too many values verses columns. But I think it was fixed. I am double checking now. Jay B

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] wrote in message [EMAIL PROTECTED]">news:

[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

[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? Chris Crane [EMAIL PROTECTED] wrote in

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

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, 2002 at 10:14:25AM -0400, Chr

Re: [PHP] Code errors

2002-07-18 Thread Chris Crane
td$Line[3]/td td$Line[4]/td td$Line[5]/td/tr; } $row++; } print '/table'; 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: U

[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] 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... [snip]

[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

[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

[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

[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

[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

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

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
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.completesource.net Developer's Forums: http://www.completesource.net/forums/ Chris Crane [EMAIL PROTECTED] 07/16/02

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 the

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/page1.html

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
}else{ $db1-commit(); } Classes allow you to have multple instances of an object containing seperate info, makes it easier to keep track of. Hope this helps, Steve. -Original Message- From: Chris Crane [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:07 AM To

[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 HTML_END; This a whole bunch of HTML code!!! HTML_END The best part about this, was that you did not have to escape your and you could mix in your variables making it easy to design and layout the HTML. Is there

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