Search found 28 matches

by burnhallian
Fri Jun 09, 2006 4:28 am
Forum: PHP - Code
Topic: Editing Checkbox
Replies: 1
Views: 125

Editing Checkbox

Hi All ! Im editing a php page and i have to retrive the value of a checkbox and im not sure how to get that :cry: The part of the code is below. Kindly tell me how to get back the value of check box and display it on the page, this code displays the checkbox as checked always irrespective of whethe...
by burnhallian
Thu Jan 12, 2006 12:21 am
Forum: PHP - Code
Topic: Error !!
Replies: 6
Views: 260

thanx buddy ! it worked ... u r cool man :D
by burnhallian
Thu Jan 12, 2006 12:02 am
Forum: PHP - Code
Topic: Error !!
Replies: 6
Views: 260

but i have already done that. the code is below, kindly go through it :) $query="SELECT * FROM objective WHERE hw_id={$_GET['ll']}"; $result=@mysql_query($query); while($row=mysql_fetch_array($result,MYSQL_NUM)) { $row[2]=nl2br($row[2]); $row[4]=nl2br($row[4]); $row[5]=nl2br($row[5]); $row...
by burnhallian
Wed Jan 11, 2006 9:49 pm
Forum: PHP - Code
Topic: Error !!
Replies: 6
Views: 260

So what should i do ? i tried to remove the ' from ['5'] but then i get the ouput as if ($row[5] == sig) { echo "Significant Breakthrough"; } elseif ($row[5] == maj) { echo "Major Breakthrough"; } elseif ($row[5] == min) { echo "Minor Breakthrough"; } not the values tha...
by burnhallian
Wed Jan 11, 2006 9:15 pm
Forum: PHP - Code
Topic: Error !!
Replies: 6
Views: 260

Error !!

hi guyz !! hey i gotta problem in thisone.. i know its simple but what to do ?? :( the code is below, im viewing a radio button, plzz tell me what am i missing. echo '<tr><td> if ($row['5'] == sig) { echo "Significant Breakthrough"; } elseif ($row['5'] == maj) { echo "Major Breakthrou...
by burnhallian
Thu Dec 29, 2005 8:17 pm
Forum: PHP - Code
Topic: link problem ! :D
Replies: 2
Views: 444

guys !! plzz help in above matter
by burnhallian
Tue Dec 27, 2005 8:50 pm
Forum: PHP - Code
Topic: link problem ! :D
Replies: 2
Views: 444

link problem ! :D

hi guyz ! i got a problem in linking... hope u can solve that. the code for my page is below: <?php if(!isset($_COOKIE['user_id'])||empty($_COOKIE['user_id'])){ echo "Please login first"; exit();} include ('header.inc'); $page_title="Objective Achievement"; $user_id=$_COOKIE['use...
by burnhallian
Wed Dec 21, 2005 11:38 pm
Forum: PHP - Code
Topic: Radio Buttons
Replies: 4
Views: 365

tahnx a lot jshpro !! i tried what u said; for this : The value of $mno is "<? var_dump($mno) ?>" i got; The value of $mno is "NULL " for the $mno = 'min'; the radio button did not get checked..so seems both my radio button as well as $mno r wrong... plzz tell me what to do now ?
by burnhallian
Wed Dec 21, 2005 10:44 pm
Forum: PHP - Code
Topic: Radio Buttons
Replies: 4
Views: 365

i even modified it to the below given but still didnt work :( im not sure where exactly im doing a mistake. <tr><td><font face="Arial" size="3"><b>5. How would you characterize the quality of this output ? </b><br><br> significant<input type="radio" name="kl" ...
by burnhallian
Wed Dec 21, 2005 10:24 pm
Forum: PHP - Code
Topic: Radio Buttons
Replies: 4
Views: 365

Radio Buttons

hi all ! im supposed to edit a form and in that form there is a radio button as well. im not sure how to retrive the value of the radio button from database. kindly help. the code is given below: i couldnt get the value of the radio button. the database table structure is also given below: <?php inc...
by burnhallian
Wed Dec 21, 2005 12:43 am
Forum: PHP - Code
Topic: help needed ! radio buttons
Replies: 13
Views: 495

this is the table structure" CREATE TABLE `objective` ( `hw_id` int(11) NOT NULL default '0', `orig` text NOT NULL, `ach` text NOT NULL, `nach` text NOT NULL, `indi` text NOT NULL, `kl` char(3) NOT NULL default '0' ) TYPE=MyISAM; kl is the one in which i am putting the value of radio button. So...
by burnhallian
Wed Dec 21, 2005 12:14 am
Forum: PHP - Code
Topic: help needed ! radio buttons
Replies: 13
Views: 495

poor me ! :roll:

im lost ... donno how to go about with it.... i thought it was simple.

where to put that line ? i tried but im not getting the real output for radio button. its jus giving the default for radio button.
by burnhallian
Tue Dec 20, 2005 11:32 pm
Forum: PHP - Code
Topic: help needed ! radio buttons
Replies: 13
Views: 495

thanx for the reply man ! but still i couldnt get it... still newbie in PHP. :( im posting the code.. do plzz check out where the problem is, sory again, <?php if(!isset($_COOKIE['user_id'])||empty($_COOKIE['user_id'])){ include('header.inc'); echo "Please login first"; include('footer.inc...
by burnhallian
Tue Dec 20, 2005 10:36 pm
Forum: PHP - Code
Topic: help needed ! radio buttons
Replies: 13
Views: 495

thanks a lot jshpro2, but im still not getting it . im a new bio in PHP so sorry for troubling u guys ! i have modified the code as given below but still it does not take the value of radio button from database. :( thanx in advance $mno=$_POST['kl']; <tr><td><font face="Arial" size="3...
by burnhallian
Tue Dec 20, 2005 9:55 pm
Forum: PHP - Code
Topic: help needed ! radio buttons
Replies: 13
Views: 495

HawleyJR | Please use and tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color] Actually im using a simple form in which user key in values. If a user wants to edit what they have submitted, for that im writi...