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
~615 People Reached
Favorite Forums
Favorite Tags
php x 11
Member Avatar for wayz1229

i'm realy confused on how to do this.. deperately need help. i have two tables as below: table1- qid(primarykey), qtitle table2- aid(primarykey), atitle, qid example, table1- (qid=1; qtitle=fruits), (qid=2; qtitle=vehicle) table2- (aid=1; atitle=apple; qid=1), (aid=2; atitle=banana; qid=1), (aid=3; atitle=car; qid=2), (aid=4; atitle=bike; qid=2), (aid=5; atitle=bus; qid=2); when i retrieve the …

Member Avatar for kitschkath
0
114
Member Avatar for wayz1229

can anyone teach me how to do loop for the script below.. thanks in advance.. [CODE] <?php require_once('config.php'); $aid1=$_POST['Question-1']; $aid2=$_POST['Question-2']; $aid3=$_POST['Question-3']; $aid4=$_POST['Question-4']; $aid5=$_POST['Question-5']; $aid6=$_POST['Question-6']; $aid7=$_POST['Question-7']; $aid8=$_POST['Question-8']; $aid9=$_POST['Question-9']; $aid10=$_POST['Question-10']; $qid1=$_POST['qid1']; $qid2=$_POST['qid2']; $qid3=$_POST['qid3']; $qid4=$_POST['qid4']; $qid5=$_POST['qid5']; $qid6=$_POST['qid6']; $qid7=$_POST['qid7']; $qid8=$_POST['qid8']; $qid9=$_POST['qid9']; $qid10=$_POST['qid10']; // update vote counter $query = "UPDATE answers SET acount = acount …

Member Avatar for wayz1229
0
98
Member Avatar for wayz1229

i'm having problem with survey script and voting function. can anyone please help me out.. the script only accept the last question's answer and update the database = acount+1. script to dislay survey: [CODE] <?php echo "<form action='vote.php' method=post> <table width='300' border='0' cellspacing='0' cellpadding='0' align='center'>"; $query1 = "SELECT * FROM …

0
87
Member Avatar for wayz1229

i need help with the code below.. the code does not get correct qid from table questions. let say i enter 2 qtitle, and each qtitle has 3 atitle.. but once the data entered in database.. the error is like below: (qid=1)qtitle1- (none of the atitle having qid1) (qid=2)qtitle2- atitle1, …

Member Avatar for shlomia
0
70
Member Avatar for wayz1229

I'm having problem with the script below. The [B]atitle[/B] getting the [B]qid[/B] from the last question inserted in the table. I need to have [B]atitle[/B] with the corresponding [B]qid[/B]. for example: qtitle (qid=1) - atitle (qid=1) - atitle (qid=1) qtitle (qid=2) - atitle (qid=2) - atitle (qid=2) can anyone please …

Member Avatar for Graphix
0
147
Member Avatar for wayz1229

i want to sort qtitle by numbers. anyone can help me with tat.. i tried to modify the code below, but i couldn't find the solution. please help me.. [CODE]<?php $query1 = "SELECT * FROM table1"; $result1 = mysql_query($query1); $i=1; $num_row=mysql_num_rows(result1;) while ($row1 = mysql_fetch_array($result1)) { $qid = $row1['qid']; $qtitle …

Member Avatar for wayz1229
0
99