There are few changes needed..... one in the echo statement in the while loop.... while($row = mysql_fetch_assoc($result)) { $data = $row['data']; echo ("$data"); }change it towhile($row = mysql_fetch_assoc($result)) { echo $row['data']; }check this link, it should help.....http://us2.php.net/mysql_fetch_assoc
Guess its the $query, You dont have to user LIKE, its better to use "=" if you know the "name" for sure..... $query = "SELECT data WHERE name = 'gg' ";
The name in the href should match the ID of the element in the bottom of the page....<body><a href="#bottom">Bottom of page</a><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><div id="bottom">bottom of page</div></body>
oh so close.... You almost got it all correct, just for these two incorrect ones .... give it another try and fix these two..dhtml = Dynamic Hyper Text Markup Languagexsl = eXtensible Stylesheet Language
Try this....<script type="text/javascript" language="javascript">var now = new Date();var tzo=(new Date().getTimezoneOffset()/60)*(-1);document.write(tzo);</script>
Window.open is used to create a popup page....sample belowhttp://msdn.microsoft.com/library/default....hods/open_0.asphttp://www.javascript-coder.com/window-pop...ndow-open.phtml
Table:UserID PollID AnswerPollID is for different voting questions. it has to be unique for each question.Since you want restrict the user, when every user submits the vote check the userid and pollid and decide......
Heard of Charles Babbage as the father of computers.... Also guess "Alan Turing" is considered as an other father of computersEDIT: Oh just found that Alan Turing is the father of "modern" computers.....
There are 2 ways to pass values entered in various fields from one form to another...1. POST method: [send data]<form id="frm" runat="server" method="POST" action="nextpage.aspx">...................<input type="text" runat="server" id="TXT1" size="20">Retrieve data in nextpage.aspx.vbdim str as string = Request.Form("TXT1")2. GET method[send data]<form id="frm" runat="server" method="GET" action="nextpage.aspx">...................<input type="text" runat="server" id="TXT1" size="20">Retrieve data in nextpage.aspx.vbdim str as string = Request.querystring("TXT1")This method passes values in the URL.
If the user who can vote will be a registered member of your website, then we can restrict by getting the unique user id and storing it in a database along with the survey or poll id which he already voted....If not [anybody can vote] then some ways are by getting user's IP and storing in DB....or creating cookies and checking them. This has few problems as user can work around and vote multiple times... not fool-proof.....