Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Tags
Member Avatar for Sanit

Hey guys, I'm trying to echo a link that has an onclick attribute attached to it, but when I click on the link on the page, just goes to the desired page, and doesn't preform the onclick action. Here's my code: [code=php]<?php if(session_is_registered("sesvar")){ echo ("<a href='../../admin/comment-delete.php?id=$id2' onclick='return(confirm('Are you SURE you …

Member Avatar for leo_gatmaytan
0
2K
Member Avatar for Sanit

Hey guys, I have this assignment due soon and need some help with it. I don't want the solution handed to me, but I also don't want some extremely vague answers either. I want to learn from this. Basically, what I am making is a simple applet, that has 3 …

Member Avatar for gunjannigam
0
129
Member Avatar for Sanit

Hi everyone, I have a website where you can vote things up and down. There is no login required to vote and it should register that you have already voted on a particular thing you have already voted on the next time you visit. It seems to work fine but …

Member Avatar for Josh Connerty
0
88
Member Avatar for Sanit

Hey guys, I have a form made up, and there is an option where the user selects "Male/Female". The way its set up is as follows: [code=JavaScript] var lastLink; function setLink(theLink){ if(lastLink) lastLink.className="genderSelect"; theLink.className="selected"; lastLink=theLink; return false; } [/code] [code=HTML] <ul> <li> <a id="genderMale" onClick="return setLink(this)" class="genderSelect" href="#">Male</a> </li> <li> …

Member Avatar for Sanit
0
118
Member Avatar for Sanit

I have this bit of code that I am using in a project which I got working on a test webpage, and then when I tried to implement it on the real webpage, it all works, except for the jQuery effects. Here is the code: [code=Javascript] $(function(){ $("a.vote_up").click(function(){ //get the …

Member Avatar for Sanit
0
125
Member Avatar for Sanit

I am having a problem with some of this code: [code=php]<?php $q = "SELECT * FROM entries"; $r = mysql_query($q); if(mysql_num_rows($r)>0): while($row = mysql_fetch_assoc($r)): $net_vote = $row['votes_up'] - $row['votes_down']; $row_id = $row['id']; ?> <div class='entry'> <span class='link'> <a href='<?php echo $row['link']; ?>'> <?php echo $row['title']; ?> </a> </span> <span class='votes_count' …

Member Avatar for Sanit
0
89
Member Avatar for Sanit

Hi guys, I have a bit of a problem here. I have dynamic URLs which are changed using mod_rewrite from 'example.php?id=204' to '/example/title-of-story-from-db/'. My problem is that I need to call a function through a link on either the example.php page or another separate page which uses information from the …

0
61