[PHP] CSV > MySQL

2003-07-18 Thread John Wulff
How would I go about taking a 6 field CSV and inserting each row into a MySQL DB? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Calculating Largest Member of Array

2003-07-02 Thread John Wulff
Sorry for the multiple post!! Apparently when pasting I hit some magic send key.I'd like to calculate the largest member of this array without taking into account the first value which is obvisouly not numeric. So far this is how I'm doing it, but sometimes I get returned a month for the max. $hi

[PHP] Calculating Largest Member of Array

2003-07-02 Thread John Wulff
I'd like to calculate the largest member of this array without taking into account the first value which is obvisouly not numeric. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Rotating text

2003-07-01 Thread John Wulff
What would the best way to rotate text 90 degrees? Using php's image generator? Some fancy HTML I don't know about? Or something else? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] list() with unknown number of values

2003-06-30 Thread John Wulff
I want to write a function that manipulates each piece of data in an array (except for the first). Right now I'm using list as follows from this array: $cdata = array( array("Apr-03",12747.17,23486.55,319062.24,257828.73,0.00), array("Sep-02",12379.46,10246.92,482295.71,618131.35,14.99) ); forea

[PHP] Largest Member of Array

2003-06-26 Thread John Wulff
How would i find the value of the largest number in this array? $example_data = array( array("Mar-99",100,2000,5945.33,1234,10), array("Feb-99",908,3454,4764.90,4321,50), array("Jan-99",542,8000,13365.52,6012,60) ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Impossible bug! (fwd)

2003-06-26 Thread John Wulff
Hmph, just not quite doing the trick... If you'd be so kind here is the complete source to give you a little bigger picture. As you can probably see the point of the script is to generate a bar chart of the array. Thanks so much for the help, let me know what you think! -John Untitled Docume

[PHP] Impossible bug!

2003-06-26 Thread John Wulff
Where the heck is my problem? No matter what the value for *_color is always 1!!! $example_data = array( array("Mar-99",100,2000,5945.33,1234,10), array("Feb-99",908,3454,47648.90,4321,50), array("Jan-99",542,8000,13365.52,6012,60) ); $high = 47648.90; if(!isset($num)) { $num = 1; } whi

[PHP] Array Info

2003-06-25 Thread John Wulff
I need some information about an array structured as follows: $example_data = array( array("Mar-99",0,0,5945.33,0), array("Feb-99",0,0,47648.90,0), array("Jan-99",0,0,13365.52,0) ); I need to know the largest number in the array. I need to know how many sets of numbers there are, ie how many comma

[PHP] Converting Array

2003-06-25 Thread John Wulff
I've got an array in the following format: Array ( [Jan-1999] => 36.04,140.35,319.53,324.07 [Feb-1999] => 1.78,71.78,320.58,141.97 ) I need it in the following format: $example_data = array( array("Feb-1999",1.78,71.78,320.58,141.97), array("Jan-1999",36.04,140.35,319.53,324.07) ); I'm su

[PHP] Array conversion

2003-05-30 Thread John Wulff
I'm new to working with complex arrays/objects and need a little help. Below is the array I need to convert to a different type of array. The "begin what i have" section is data I've succesfully mined from an XML file. The data labeled "desired output" is how I need the data to be formatted. How d

Re: [PHP] Mining a file for data

2003-03-08 Thread John Wulff
uot;', > '".addslashes($title)."', > '".addslashes($date)."', > '".addslashes($directory)."', > '".addslashes($image)."' )"; > $result=mysql_query($query); >

[PHP] Mining a file for data

2003-03-07 Thread John Wulff
I'm just learning PHP so please excuse my ignorance. I'm trying to extract the data from a simply formatted text file via a simple PHP script. The goal of this project is to take Magic the Gathering spoiler lists and dump them into a MySQL database. I've got plenty of experience with MySQL but n

[PHP] Why won't this work?

2002-07-19 Thread John Wulff
Any ideas on why this won't work? It will only include("inc/entrance.php") It never, no matter what the value of $mode, displays collection.php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing 4.0.6 to 4.1.1 patch

2002-07-17 Thread John Wulff
I've downloaded the 4.0.6 to 4.1.1 patch but how do i install it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Limiting number of decimal places reported

2002-06-29 Thread John Wulff
How do I limit the number of decimal places returned in this query? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php