Hi everyone
i really need help ASAP .I need to read from the file which saved the result of a survey and make a chart on the answers. i have 5 questions and the values are 1, 2, 3 .how can i make the readin from the file and making the bar chart .plzzzzzzz need help fast
thanks :(
BabyEyes
0
Newbie Poster
Recommended Answers
Jump to PostHi there,
If you ever have any questions about php the first place you should look is http://www.php.net and then
Jump to PostYour file is called "Result.html" it needs to be saved with a php extension and served by Apache in order for the php to be interpreted and run. Your actual php code looks fine though.
Jump to PostI'm not referring to your text file, i'm talking about your source file (Result.html) any php you put in it will NOT run. If you insist on keeping it an html file you will need to make another php file to run your scripts and then post the values over …
Jump to PostHi,
First of all before you read a text file (survey.txt), you need to define a particular way your file has the contents.
For eg: if you have your survey questions and options, then your file may have a format as given below:
What is an average …
All 16 Replies
Menster
38
Junior Poster
BabyEyes
0
Newbie Poster
Menster
38
Junior Poster
BabyEyes
0
Newbie Poster
Menster
38
Junior Poster
BabyEyes
0
Newbie Poster
sikka_varun
0
Junior Poster in Training
sikka_varun
0
Junior Poster in Training
BabyEyes
0
Newbie Poster
sikka_varun
0
Junior Poster in Training
BabyEyes
0
Newbie Poster
sikka_varun
0
Junior Poster in Training
BabyEyes
0
Newbie Poster
BabyEyes
0
Newbie Poster
BabyEyes
0
Newbie Poster
Menster
38
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.