Chukxy's Posts
Nairaland Forum › Chukxy's Profile › Chukxy's Posts
martinsflo:Hi martinsflo , I'm interested in working with you if you are to use MC68000,C/Assembler Language to accomplish this task. |
This is unbelievable, my fellow nwanna doing this type of thing. Things has really changed. @CentD I'm disappointed. |
@ikeobidi , thank you the acknowledgement, but you do not use licence for software, the proper term is copyright. For more information, you can contact any attorney specialised in intellectual property. |
@ikeobidi , you do not patent software,publications,music,etc, rather you patent inventions. The software you developed falls under copyright. You protect your copy right by just declaring that all rights reversed(e.g Copyright (C) 2010 SoftWebKey.com - All Rights Reserved ). In this scenario, you can tell them that you are granting them the right to use the software(they should not resell it) but you are not selling the copyright to them. This will automatically protect you when you want to sell it to other people to make use of it. |
@deyesborn and hostmaker, you guys are too much. Thanks a lot for sharing this important information. I wish you more success. Have a wonderful week ahead! |
@donclemo , great job! More power to your elbow. |
Hi naija_swag , that was a great and good chase, more power to your elbow. Yes, it is always good to put your programming skill to practice by doing some projects that come on your way, by so doing, you would develop confidence to tackle more challenging tasks or projects. Concerning being your mentor,all I will say is that we can always learn together.You can reach me through my website www.softwebkey.com. Do have a wonderful weekend! |
@poster, Yes, it actually hurts so much when you fell in love with someone and suddenly the person call off the relationship; however, that is not the end of the world. It is also a great thing that he told you on time so that he will not end up wasting your time. Now, I think you should pick up your pieces and forge ahead as this life is too short to be wasted worrying about someone who has moved on with his life.I'm glad with your personality, it will not be long before you get someone to love you and you in turn love the person .For now, just hang out with friends and keep yourself busy with activities, you will surely get over it and move on with your life. |
yes, the bug is fixed. Cheers! |
@Wily+Wily , why can't we just say our opinion about things without sounding tribalistic. For crying out aloud, we are mature enough to know that this tribal bigotry will not lead us any where and again we are not giving good example for those looking at us as their role models. |
@ogzille, just don't mind Kosovo, your site is professional enough, the only issue you have with your new design is the compatibility issue with IE which I believe is as a result of CSS you used. Just try to see what you can do about it and you are good to go. It pains so much, when people just rubbish the effort of someone without minding what the person has put in. It is discouraging and sometimes the person may end up abandoning the entire project.Even when you are not satisfied with what the person has done, you can still communicate to him professionally without discouraging the person. |
Hi Dual, with the solution you posted I was able to get clearer picture of what you intend to achieve; hence I decided to modify my code to achieve that. The code is pasted below: <? $db_name="nairaland"; $connection=@mysql_connect('localhost','spike','9sj7En4') or die(mysql_error()); $db=@mysql_select_db($db_name,$connection) or die(mysql_error()); $sql ="select * from radiobutton"; $result = mysql_query($sql) or die(mysql_error()); $form_block=" <FORM METHOD=\"POST\" ACTION=\"radio.php\"> <table cellspacing=5 cellpadding=5> <tr><th>Number</th><th>Choice1</th><th>Choice2</th><th>Choice3</th> </tr>"; while($row = mysql_fetch_array($result)) { $form_block.=" <tr> <td>$row[id]</td> <td><input type=\"radio\" name=\"item[$row[id]]\" value=\"$row[choice1]\" checked=\"checked\">$row[choice1]</td> <td><input type=\"radio\" name=\"item[$row[id]]\" value=\"$row[choice2]\">$row[choice2]</td> <td><input type=radio name=\"item[$row[id]]\" value=\"$row[choice3]\">$row[choice3]</td> <br/> </tr>"; } $form_block.="<tr><td align=center colspan=3><input type=\"submit\" value=\"Get Result\"></td> </tr> </table> </form>"; ?> <html> <head> <title>Dynamic Generation of Radio Button </title> </head> <body> <? echo "$form_block"; ?> </body> </html> The code above dynamically draws the radio button irrespective of the number stored in the database. The code below dynamically get the values selected by the user <? for($d=0;$d<=count($_POST[item]);$d++) { echo $_POST[item][$d]; echo "<br/>"; } ?> The attached the screen shoot of the drawn table.
|
Ok, if it is to retrieve the value from the selected button group, the following would be of help: <html> <head> </head> <body> <form method="post" action="radio.php"> <input type = "radio" name = "food[0]" value="stuff1" checked="checked">rice</br> <input type = "radio" name = "food[0]" value="stuff2">beans</br> <input type = "radio" name = "food[0]" value="stuff3">Pop Corn</br> <input type = "radio" name = "food[1]" value="stuff10" checked="checked">flat</br> <input type = "radio" name = "food[1]" value="stuff2">pointed</br> <input type = "radio" name = "food[1]" value="stuff3">tiny</br> <input type = "radio" name = "food[2]" value="stuff25" checked="checked">nokia</br> <input type = "radio" name = "food[2]" value="stuff2">iphone</br> <input type = "radio" name = "food[2]" value="stuff3">china phone</br> <input type="submit" value="printselect"> </form> </body> </html> Then the code below would retrieve the values: <? for($d=0;$d<3;$d++) { echo $_POST[food][$d]; } ?> I tried it, I was able to retrieve the values. Basically, you need to use array in order to loop and get the values. I hope this helped else I would try further. |
Oga Dual Core , I was waiting for your response. |
I want to be sure the part you are facing challenge. Is it the point you want to retrieve the value of selected radio button from the group? Or is it the part you want to assign value to radio button with database result? |
Hi Dual Core , I don't think is complex as such, just throw more light on what you set to achieve, let me see what I can do. |
Yes, I'm not contesting that, that was why I said , it looked professional in my first comment. I also think you should increase the result you are getting now by making it give an enticing info of what the site is all about at a glance.Anyways, that is my opinion. |
Hi worldsearc, your website looks cool and professional; however, it took me much time to decipher the purpose of the website. In other words, I was expecting at a glance to know what the website is meant for. If you can do something on that, it will be great. |
Hi ogzille, I'm using IE 7 and Google Chrome. In Google chrome is okay. |
Hi ogzille , I don't like the flying content, it is distracting and when placed on the main content, it does not align properly making it look some how. I think you should do something about it. Aside that, it looks ok. |
Hi johnsonpal, I am not cleared enough with your enquiry but from what I understand, you want to view the trial.php file which you uploaded in your root directory in your server without typing toslaw.2.je/trial.php , in other words you just want to type toslaw.2.je to view trial.php file you uploaded. If that is the case, just make trial.php your index file i.e change the name to index.php. If you change the name to index.php, you can now view it by just typing toslaw.2.je. I hope that helped else provide more clarification for the challenge you are facing. |
Hi youngestpr , I think this link http://download.oracle.com/javase/tutorial/ might be of good help to you. Best of luck! |
Hi SayoMarvel ,I just sent you mail. I am delighted to hear that you got an improved architecture. I can't wait to tap from it. Hope to hear from you soon.Have a nice day! |
@SayoMarvel , Thanks for the response and observation;however, I do not agree with you in terms of my program being prone to errors as I equally developed a class to take care of batch upload of data to any database and the class would ensure that only correct data is uploaded to database.The only issue I had with my program was it took me more time than I anticipated, so I want to get a better way to do it with less time. In terms of GUI, I did not pay attention to that as I concentrated on the functionality. Anyway thanks. |
@SayoMarvel , you are partly right as it took me more time than I anticipated to do it. However, the time It took me to get it done would be compensated by its flexibility, easy to maintain by novice in programming. Please, I would want to compare your method to better the method I adopted, if you don't mind. The screen shoot is attached.
|
@Danyl , lets do it this way. Lets use MVC architecture. You know what I mean: M - Model V- View C- Controller For the model, we are going to use any of the database such as: ms excel,ms access,mysql,ms- sql, oracle etc. Any one you feel comfortable using is ok. The next thing is for you to design the table and I think the following fields should come handy: 1. question field(varcha) 2.choice1 field(varcha) 3.choice2 field(varcha) 4.choice3 field(varcha) 5.choice4 filed(varcha) 6.answer field(int) 7.question id(should be the primary key to avoid duplication of question) After designing and creating the table, you use batch upload to upload the data as you wish and make the initial value of the answer field to be zero. For the view part of it, you create JLabel objects- one will hold the value of the question , one to hold the result of the candidate,one to hold the time , etc. and other thing you deem fit. Create JRadioButton to hold the four choices as reflected in the table and add same in the Button group. Create 7 button objects to get user inputs and I think the following buttons should come handy 1.StartTest 2.EndTest 3.First 4.Last 5.Next 6.previous 7.Exit For the controller, you should add actionListener in each of the button listed above and write the event handling code in your action performed method. In this case, when the user clicks on the start test button, all the data you stored in the table will be returned to your resultset object(make sure you set it to editable(true)). then retrieve the result one after the other based on the user click( e.g First button, will retrieve the first question in table and set question label with the value of question one, also will set the values of the radion button accordingly). When the user select the radio button of his choice, it will automatically modify the value of the answer field since it is editable.The modification is based on if the user gets the answer correct, the value can change to one , but if the user gets it wrong the answer field remains zero. At the end of the test, you select the answer field and sum the total marks and update your answer label . Also reset the answer field in your table to the former value to enable other user make use of it. I think if you do it this way, you can even make online test and the sacability and maintainability will be easy. |
@poster as I suggested before, you said you already had HND in Computer related course and you have improved your skill by reading on your own and the only thing you need now is to get a degree. If that is what you want just apply direct to get what you want. Concerning, Niit or Aptech. It takes someone who have studied in both schools to say which one is better. @afam4eva you can not just be making a vague statement. If you are saying NIIT is a crap, you give reason for that not just because you are currently studying in Aptech;hence, Aptech is good and NIIT is a crap.Give concrete reasons so the poster would make an informed decision. |
@poster, since you have HND and all you want is to get a degree, why don't you apply for top-up degree to Uk University direct as it will take only one year to get that. You can make further enquiry from Global Incl there in Abuja or any other agents that are affiliated to UK universities. Better still search on line for school that accept HND for top-up programme. |
@honeric01 , thanks for the update. |
Please where can one watch the match online. |
@IyaBasira , thank you the correction is well taken. Back to topic. So jumping to another lane in a traffic jam is not breaking traffic law, really? Her car over heating is justifiable excuse? And her running late to where she was going is also justifiable? Ok, let set sentiment aside, just put yourself in that traffic warden's shoe. You are saddled with the responsibility of maintaining free flow of traffic.It happened that the traffic is jammed because of impatience and our habit of always want to do the wrong thing(Nigeria factor). Suddenly, you saw people complicating the issue by jumping to another lane.You were able to catch one of the offenders, who at first instance was apologetic of what she did, but on a second thought, she suddenly realised that what she did was right. OK, you asked her to follow you to the police station, she refused. You wanted to take her car key, she was dragging it with you. the next thing she did was to call your oga to order you not to do your duty because she felt she had the connection(Nigeria factor). Looking at the foregoing scenario, most of you calling for this traffic warden to be killed because of her act, would have done the worse. At first, when I saw her picture I was so furious with what happened owing to nigerian police precedent and the way most of them act unprofessional in their duty post but after reading the story,I found out that she partly contributed to her ordeal. I am not exonerating the traffic warden for her act as she acted unprofessional. there is a better way she could have handled the situation and still make her pay for breaking the traffic law and still claiming she was right. For those us saying that for the fact that 95% of ngerians break traffic law and get away with it; hence, it is a norm to always break traffic law in Nigeria, please think again. The same people would go to another country and keep their traffic laws to the latter but when it comes to Nigeria is a norm to do the wrong thing.With this mindset, you still wonder why things are not changing rather they are getting worse. Please, let us look at this issue in different perspective, one from Beauty queen and another from the traffic warden's perspective. Also let us not pass judgement base on sentiment and the opinion you already had for nigerian police. We should have it at the back of our minds that we can change no matter how normative and juicy our wrong doing seemed to be, we can still change for good. If you believe , just smile for me ![]() |
