|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#31
|
||||
|
||||
|
I even tried this but now it is not displaying even the id??????????????????
PHP Code:
|
|
#32
|
||||
|
||||
|
hey ur code worked
It gave me the output : Array ( [c_id] => 125 [problem] => Misc - Hardware related [solution] => Being Monitered....... [comments] => ON THE 6PM REPORT TECH FOUND THREE RADIOS LOCKED WILL MONITOR [username] => pamato [date] => 2008-08-14 [rf] => no ) |
|
#33
|
||||
|
||||
|
What does the link look like that opens that page? Are you positive you're sending the value across still?
__________________
FREE Web Development Videos | PHP Reference | MySQL Reference | jQuery Documentation Markup Validation | CSS Validation | Web Developers, get FireBug & IE Developer Toolbar When seeking help: Submit clear questions and code. Use syntax highlighting. Be patient, and respectful. Don't abuse your access to professional guidance - nobody here is obligated to answer your questions, be thankful that they do. Are you a good person? |
|
#34
|
||||
|
||||
|
Quote:
Bah, you're confusing me now! One minute it doesn't work, and the next it does - make up your mind! Haha. Okay, so tell me when you're ready to continue. |
|
#35
|
||||
|
||||
|
I am ready now..............!!
![]() |
|
#36
|
||||
|
||||
|
Alright, so of the information that we successfully extracted from the db, what do you want to allow them to edit in the form?
|
|
#37
|
||||
|
||||
|
Well, they definitely cannot edit C_id , date & CELLID
They can only edit Problem, Solution, Comments & RF Comments can be reposted in the textbox but Problem and Solution is just the same drop downs but just displayed with the selected value of the one they are trying to edit. |
|
#38
|
|||||
|
|||||
|
Alright, so let's build our form - once you have this done, we'll setup the auto-select for the dropdown, and the checkbox. You can also design your form here too the way you want it:
php Code:
Last edited by jsampsonPC : August 14th, 2008 at 12:50 PM. |
|
#39
|
||||
|
||||
|
it gets the comments into the text box.
A drop down and a radio button: TO GET THE VALUES INTO THE DROP DOWN I TRIED: PHP Code:
iT IS SAYING ERROR ON LINE 12 Parse error: syntax error, unexpected T_STRING in C:\WAMP\www\tmetrix\edit.php on line 12 |
|
#40
|
|||||
|
|||||
|
Yeah; the error is from not escaping your double-quotes. But that isn't how you want to do the drop down selection anyway. Work on your drop-down until you have it working like the example in the code below. Each option in your <select> should look like this.
php Code:
Last edited by jsampsonPC : August 14th, 2008 at 01:05 PM. |
|
#41
|
||||
|
||||
|
i got it by changing " to '
|
|
#42
|
||||
|
||||
|
I did it for both the drop down but how can we do the radio button?
|
|
#43
|
||||
|
||||
|
|
|
#44
|
||||
|
||||
|
Quote:
You should go back and do it the way I suggested. Don't get in the habbit of finding fixes when you need to be using solutions :P With your way you will have the same value in your dropdown twice, and that isn't what you want. |
|
#45
|
||||
|
||||
|
Say if we make the radio button to dropdown with yes and no then I have a problem:
In the above drop downs, i am displaying all my options with the repeat of the chosen one. But in yes or no i cant have 2 yes and 1 no or viseversa. How can we solve this problem of reduenducy? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Edit problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|