Quote:
|
Originally Posted by mab
From the author's code/documentation - "one" is the filename portion of the csv file. From the comment in my sample code. The filename is discussed above, you can change this or make use of a variable. The default location would be the same folder as your script, but you can add a path if it is located somewhere else.
|
Can you tell me how to build a $filename variable?. Is that something like
$filename = /secured_path/filename.csv
Quote:
|
Originally Posted by mab
Item_no is the column heading from the csv. You listed item#, but I suspect the "#" would cause a problem at some point in time.
|
You are right, I just changed that.
Quote:
|
Originally Posted by mab
If you are essentially building a table, the following would be more efficient then the above method -
|
OK, your latest code works great. However, it seems to be designed to print the entire contents of the csv file. I can see a use for that soon, but not yet. I will even have a need to print only those items in a particular category. But for now, I need to pull individual parts from the csv as needed.
When I use the following code
I get the results of.
Item #: 5656
Daily Rental #: $1
Sale Price: $9
Item Name: Dave's Bear
Why is it not showing the full rental price of $1,250.00 and sale price of $9,500.00 like it is in my csv file?
Also, when excel exports out to a csv file, there are quotes in the file, how do I get the php to strip them out? Or is that not important?