Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





PHP Poll Tutorial


I am running through a tutorial on how to generate a poll using PHP and mySQL, I have inputted the code exactly as it states, but I keep getting this error: Parse error: parse error, unexpected $end in C:Program FilesApacheApache2htdocsaby.php on line 75.

There are only 75 lines in my code, so I assume I mistyped something somewhere. Does anything in the following code look wrong to anyone? I deleted the username and password for obvious reasons, but they are set right. PHP Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Php Poll
Im wanting to add a Poll on my website and im looking for one like this here

So as you can see on that site, when you vote, it automatically shows the results and doesnt refreh the page with the results So does anyone know how i can get one of these.

View Replies !
Poll
i have made a poll and i9t counts votes etc but the problem is that if you don't fill in an option and then press vote it counts it as a vote while you didnt pick an option anybody knows how to fix it?

View Replies !
1 Poll
I want to ask 1 Poll Question, but I want that 1 question to appear for X-amount of records that are in a database. For example a question like “Are the Lakers good?”, would appear for every record that is in a database for a community database (example), how would I accomplish it so that I only have to create 1 poll question, rather than creating a poll question for each record in the community database.

View Replies !
Poll - Function
Is there any way to intergrate this poll into vbulletin so it can be displayed in a header or footer or anywhere in the layout I want by placing a simple var like "$poll"?

View Replies !
Poll With Comments
I need php voting script where everybody can add comment. I found many
voting scripts, but no has ability to add comment. Can you help me?

View Replies !
POLL: Which IDE Do You Use To Develop PHP?
Just curious what IDEs are popular nowadays.

What do you expect from an IDE?
Debugging?
Do you use your IDE for debugging, or do you work like me? (Just use some
smart-placed var_dump() to dive into possible problems?)

Syntax highlightning?
Anything else?

I use Eclipse 2.1 with PHP-plugin.
Reason: It is for free and works fine.

View Replies !
POLL WITH CONFIRMATION
I am looking for a poll that block by IP and cookies and that
generates an image that shows a number to type before rock the vote.

View Replies !
Poll System
I want to write a poll system and i have problems with the page, where people can add question and answers. The things is that i want to make the answers input text areas dynamic, i mean the number of the answers to be controlled by the user, like the poll in phpBB for example with button "Add answer" where the page is reloaded with one more place for answer. Code:

<?php
if(isset($_GET['count'])){
$count = $_GET['count'];
$count = $count+1;
} else{
$count = 1;
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
...................

View Replies !
Forum And Poll
I'm looking for a good, and not too expensive, forum and a poll script that
I can integrate into an excisting website. I'm not using frames for my
website so i want to keep my header, footer and navigation but I haven't
found any forum that can do that.

View Replies !
Poll Script For PHP
I have a client who wants to have simple polls on his web site so people can vote on something and show the results.

View Replies !
Pie Chart Poll Script
Could someone lead me to a PHP webpoll (vote) script which can render the results in the form of a oie chart dynamically just like the perl script "Billow vote"?

View Replies !
Generating Poll Results
I am trying to generate poll results like the polls on this forum or poll modules like Php-nuke, using a script then generating the options like: Yes, No, Maybe, etc. Then following that generating the result is a bar. So far the script has been unsuccessful in generating the proper results for one instance the script doesn't display the other options such as No, Maybe. It only generates, Yes.

Secondly the bars width doesn't correspond to the statistics. If you need a live demonstration you may find it at :

http://phpnetzero.sourceforge.net/i...ollresults&id=1

This is the following script I'm using If you could help me fix it or specify a new way of producing the results I'm open to suggestions. PHP Code:

View Replies !
Building An Online Poll
how I should go about starting a web poll script. The purpose of the web poll is sort of like a "Class Poll" for my school. Which pretty much means that there will be a number of categories such as "Shyest" "Friendliest" "Most Athletic" and so on. Then each category will have a drop box with the names of the students in each class 80 or so names.

A student will come to the poll browse the categories then vote for a person by selecting their name from the drop down box, once they are completed the click the submit button. The results will be based on has the most votes for that category will be the winner. Now I am unsure how to go about the infrastucture of the script do need to use a database or can this be acomplished with arrays.

View Replies !
Poll Without A MySQL Database
I'm trying to create a poll that uses a simple *.txt file as a "database". And I'm wondering how to do the following things:

1) How to open the *.txt file;
2) How to list each answer-option;
3) How to add 1 to the selected asnwer-option;
4) How to save the data to the *.txt again;
5) How to close the file.

View Replies !
PHP Poll Results Question
I'd like to put up two polls on my web site on a single page. I will be
using a free remotely hosted poll service. That part is easy.

But I want to remove the two individual <a href> links that have to be
clicked to call the current results individually and replace them with a
single link that will be used to call the results of both pages and
display them at the same time, most likely in a table.

Can PHP be used to do this? How would I have to write it to get the two
poll results to display one beneath the other using only a single link
click?

View Replies !
Anchoring Poll Results
If anyone is familair with the proxy2.de Advanced Poll maybe you can help me out, I've hit kind of a brick wall on a kind of small point.

I've set up multiple polls on a page and would like to add to it over time. Everything works fine but as the page gets longer, it is going to become more & more annoying that after voting on a particular poll, the page returns to the top and you have to scroll back down the page to see the results.

So basically I would like to anchor the results, but I can't figure out where the PHP redirects back to the html to include the anchor id back.

My idea was to use the "poll_id" variable to find its way back to an anchor point on each poll corresponding to it's own id. Code:

View Replies !
Voting Or Poll Scripts
I am new to Php, but working my way out slowly. I saw some polling or
voting scripts on the net and all of them use MySQL database with it. I
was wondering if a file can be used (to save use of a database, I have
only 10-databases from godaddy and I cannot use one for each poll).

It seems that this can be done (using file instead of a DB), but I don't
want to re-invent the wheel. So if someone has a suggestion, please help
me out.

View Replies !
Achieve A Poll Script
I want to write a poll script based on certain candidates. My table structure is as follow:

Answers - id, answer, candidate_id, question_id
Questions - id, question
Candidates - id, names

Each candidate will have the question and the answer. For example, I have 10 questions. Each candidate will have 10 questions and each question will have answer to it of the candidate. What I don't know is how will I link the table. For example, I have created a candidate, I want the newly created candidate to have all the questions linked to him from questions and answers page and vice versa.

View Replies !
Pure Mini Poll,,,
i just want a tiny little poll,, thats free from any styling rules,, just a php code that shows the poll and a simple form

do you know where to get one,,, the most important thing is its not attached to any styling rules,, just follow the page its in like any other text,,,

View Replies !
Poll Not Saving Results
I have this php poll on my site, its just got 2 simple yes and n answers,

my problem is when the users clicks on on of them, it takes them to the results pages, which is all fine, but lets say they go to a diffrent page and then come back to view the results, they go back to zero?

Im extremly new to php, and found this php script for free heres the link, just click on one of the answers and submit, and then go to a diffrent page and come back to the about page and click view results. Code:

View Replies !
A Poll Service Using MySQL Database?
I currently have a site that provides free polls for webmasters. All the data of these polls are stored in individual files.

But I'm considering storing all data (this include poll colors, width, etc. and total votes) in a MySQL database. This mean that everytime someone votes or view the results, the database will be accessed.

I was wondering, is this too much load on the server? Keep in mind that this is a free service for webmasters. So if let's say 100.000 webmasters put one of my polls on their site, and each of these polls gets many votes/hits. Will this be too much load for the server? Or is this better than having a file for each poll?

View Replies !
Poll Problem Vote Not Counted
all votes are counted accept the first answer of my poll. this is the first code poll.php Code:

View Replies !
Poll - Results Outputted Into An Image
I'm staring a new project and i am trying to make an poll,which is fine, but what i need to do is have the results outputted into an image.

I havent been able to find anything like this on google so does anyone have any thoughts?

View Replies !
Show Poll / Petition Results
I would like to create a Poll that will show results after clicking the vote button and/or after a refresh on the same page.

?
?
?

Can anyone help?

View Replies !
A Simple Poll/vote Script
I need a script that allows the user to rate my videos. After they have rated the video should the same page with the counted result come.

View Replies !
Poll / Quiz Hybrid Script
A while back I found a script that allowed a visitor to vote for an issue in a poll then outputted the vote count in the poll along with a paragraph of text regarding the issue they voted for. I'm looking for something similar for a volunteer project and don't have time (or skill?) to write it myself.

View Replies !
Poll Script Displaying Seperatly Answers From Male/female
I hope this is the right newsgroup to post this question to.
I am looking for a poll script which displays seperatly the answers from
(for ex.) men and women.
Ie : if the poll question is "how old are you ?", you would have for every
answer range 2 answer bars, one for men and the other for women.

View Replies !
SSL Tutorial
Do you happen to know/have any website or tutorial on how to manage ssl website?

View Replies !
PHP & XML Tutorial?
I have tried so many PHP & XML tutorial but they are all not working properly.

Could you guys please show me a good and working properly PHP & XML tutorial,
a very nice and clear tutorial for beginners like me trying to learn them in combination.

View Replies !
PvP Tutorial
Does anyone know a good PvP tutorial, doesnt have to be easy to follow however it would be nice, or even if someone could write a VERY basic one on how to creat PvP pages.

I mean i only really need the basics and a explantion how it works, i did search on here and the main site but couldnt find one.

View Replies !
Php Tutorial
I am completely new to php (call me a noob if you'd like) and im hoping for a complete overview of php/mySQL. Every guide ive seen makes no sense to me. You can also post some tips and hints to learning  Im a fast learner in my opinion... hoping to start a text-based game in about a year. 

I already have php/mySQL/apache and a ton of other junk that came with the Xampp download. Where the heck do i put scripts... and what are the different servers for? Host im guessing.

View Replies !
Best Tutorial?
what are the best tutorial / news PHP website ?

View Replies !
CMS Tutorial
jst wondering if anyone knows of any tutorials that will show the design and impl. of a simple cms. im thinking of making my own and tough i might get some ideas from such a tutorial or example. basically i have a site with following section

articles,
photos,
web dev articles etc.,
cd reviews,
receipes,
links in categories,

what would be the best way to apprach this. mostly everything will be article based i think. photo album will have a seperate script to load and display. all i need to do is upload the pics. just looking for sugesstions really. think it will be some sort of a system that is based on text files for content nad include to put it all together, would that make some sense?

View Replies !
Xml Tutorial
Can someone point me to an online tutorial of sorts that will explain xml,and it's usage in php.

I have limited php knowledge. I am building a custom shopping cart application. I need to use xml to get quotes from UPS online tools, and to pass and receive a response from our payment processor.

View Replies !
Cron Tutorial
anybody now good tutorial on cron??
thanks

View Replies !
HTML_AJAX Tutorial
Thos who are interested to develop applications using HTML_AJAX,
please take a look at this tutorial

http://www.troymcilvena.com/wordpress-and-html_ajax/

View Replies !
Devshed's JSP Tutorial
http://www.devshed.com/Server_Side/Jserv/JSP/page1.html an interesting introduction to the language - I wondered if any PHP-heads are fluent in both JSP and PHP and what the pros and cons of java server pages are comparably? the variable process looks a little excessive (certainly for simple scripts) to me.

View Replies !
Installation Tutorial
I'm having trouble with my windows PHP/MySQL. I have a few years experience with ColdFusion, so I'll do OK once I get the basics figured out. I ran the windows installer. I believe I have 4.3 installed. I've run through some of the kindergarten tutorials. But now I get to the tutorial on Creating a PHP login script and it's assuming I know all kinds of things like how to create a frigging batabase in the MySQL that I installed. It doesn't appear there's a user interface for MySQL built in, so I installed MyAdmin. But I can't seem to configure that.

This tutorial tells me to put in my username, pw, dbhost, and db name. I have no idea where to start!

View Replies !
Tutorial On URL Encoding?
Can anyone point me in the direction of a tutorial on URL encoding? I am creating a website and i want to use 1 page which contains the layout, then seperate pages with the content. i would do it something similar to this:

http://website.com/index.php?page=links

Then that would just call up a .inc page specified in the page= variable and display it on index.php.

View Replies !
Mail() Tutorial
I need to send e-mail to a list I have created from a MySQL DB. I have the list working from a Friends page. It works great. I have a list of e-mail address. That part is fine. I am sending them fine. The part that I am having a problem with is when I send the e-mails if one is not delivered how do you know?

Does anybody know how to check to see the bounce backs. Do you need to set something in the header of the e-mail when sending the e-mail to send it to a mailbox if it is non-deliverable?

View Replies !
Very Basic PHP Tutorial Available?
I am not a programmer, and I want to do a 301 redirect for my site and do not have access to htaccess.

But I do have access to PHP apparently with certain site packages (and found the code to use online). I signed up and got lots of great new files and have no clue what to do with them.

So, is there a really basic step-by-step tutorial for what to do with PHP? I just want to forward my html pages, and need a really basic instruction source that probably starts something like: make a new file and name it X.

View Replies !
PHP4->PH5 Tutorial
Seen that support for PHP4 will be dropped at the end of the year I was
thinking that maybe now might be a good time to start moving things.

Is there a tutorial as to what I need to look out for?

And, Could I run both version on my test server? Or do I need to have
to Apache servers running?

View Replies !
PHP SOAP Tutorial Please?
anyone got a decent PHP SOAP tutorial?

View Replies !
Begining - Tutorial
i need to begin in php. is there any tutorial to begin? (i started an
hour ago .....)

i copied this first example

<html>
<head>
<titleHello World </title>
</head>
<body>

Hello, world!

<?php

echo 'This is my first PHP web page.'

?>

</body>
</html>

and saved as .html file, and when i open it with the browser, it
appears only the html part, but not php ....

View Replies !
PHP Cookies Tutorial
I was wondering if someone could point me to a good offline or online (I would prefer offline though) resource to get the gripps on dealing with cookies (both persistent and seesion based) to create an online application for one of my customer.

It will have almost the same capabilities than a ecommerce site, i.e. adding products and quatity to basket, retrieving basket info, retrieving past order info (for a short time i.e. a week or so), saving current basket for 24 hours and submitting order.

The diff with ecommerce site is that this would be for members and I would manage the product list so no need for fancy backend capabilities.

View Replies !
PHP&MYSQL Tutorial
Does anyone know of a good php&mysql tutorial?

View Replies !
Login Tutorial?
just want to know if any one knows of a good tutorial that will show me how to make a simple login system so that users can register on my site?

View Replies !
Php Tutorial For Beginner
I want to learn php so please send me any best php tutorial site for beginner by which i can get a basic and advance knowledge of php.

View Replies !
Pagination Tutorial
I followed the pagination tutorial provided on the site and everything worked out perfect... then it hit me. If I use this tutorial to display my articles, the order will be backwards. My oldest article will always be first. I see there is a comments section at the end of the tutorial and I can see that someone already tried to address that issue.

I just can't get the comments to show up. I only see their titles. Can someone either explain how to see the comments at the end of the tutorial or possibly post the solution here?

View Replies !
Video Tutorial
I'm trying to make a video tutorial on basic PHP and I don't even know why we use quotation marks such as in echo statements. All I know is that we have to use them. So why do we use quotation marks? I want to say "We use quotation marks to tell PHP that were are starting the string".

View Replies !
Good Tutorial
does any one know of some good tutorial that go through using smarty for a web site?

View Replies !
Database Tutorial
it was one of the better tutorials I've seen, but the author seemed to go off on tangents that made it hard to follow. He went over delete, update and sort options that should have been included in with the script he made available at the end of the tutorial.

It seems odd to go through all that trouble talking about it and not include it. It makes sense to be able to do these things in HTML from the Website, but instead you have to go into PhpMyAdmin and make your changes or deletes.

Can someone tell me how I can hack the add.html script to be able to modify, update and delete entries into the database from this HTML page?

View Replies !

Copyright 2005-08 www.BigResource.com, All rights reserved