Jump to content

elexion

Members
  • Posts

    122
  • Joined

  • Last visited

Everything posted by elexion

  1. Yeah there's a lot of truth in that last sentence. I find it quite hard to identify my "idea" at this point I have no idea if I even have to "begin" a company or how my project is identified. I'll try to find another source =) thanks for the help thus far.
  2. you're thinking development that's not the issue. I need to know how my website will gain attendance being new. Do I make sure it's SOE optimized and just pray it'll grow or something? Asking because I have never been in this situation before.
  3. I'll just repeat my first question since it's the most important one ^^,Q: How does a user depended website start? By this I mean a website that depends on users to upload the content.
  4. Oh no absolutely legal, just thought it would matter in relation to sites coming under attack and having to report such a attack to officials. Edit;I'm a rookie to running my own website so I'm all completely new to this. I've made plenty of websites that are also online but I never intervened on the hosting department.
  5. Hi, I want to start a serious website that'll ultimately generate revenue. And I have a few questions related to getting started. Q: How does a user depended website start? By this I mean a website that depends on users to upload the content.Q: What would be the best way to handle comments on for example multiple videos in the way Youtube does(as in allow the comments to be displayed in the way it does)? Q: When I do decide to pick a web host what are the things I need to look out for?Q: related to above question does it matter where this third party(the web host) keep their servers? (from a legal stand point) Thanks in advance for answering or contributing to the topic . These are the only questions I came up with (for now at least) if there are any points you think you should rely to me feel free to do so.
  6. hello everyone, I've got a server set up as my web host. It has Apache installed and PHP (both are the most recent version). for the database I have a different server these two machines (the web host and the database server) are connected through a peer to peer connection. Now I've learned that I need to use my database servers IP address as the host address for my database connection script but are there any other settings I need to change in the php.ini in order to make this work?
  7. thank you for the clear explanation. Which brings me to the question what's wrong with my drawing and why?
  8. Hello everyone, I am told to make a network and I am bumping into some difficulty in the design. I am told to make a IP plan simply put it's a long list with all the numbers involved in the network, so far I have everything written down I just can't figure out what to do with the router. this is the physical drawing I made of my network. But I am not sure if this works and why it would work or would not work. I have been told by my mentor to find out what a router does and what and I have concluded is that "a router sends network packages to the appropriate place/device within the network" but that was not a valid answer and he wondered off rambling. So what should I improve in my physical network drawing and why? What does a router do (in simple terms)? and what do I need to document about it(IP address? gateway?)? The database server and the webserver use a peer to peer connection to communicate with each other. Sorry about the stupid / easy question but I just can't figure out what I need to do and this is the only forum I can find to be remotely active.
  9. Yet again you completely ignore the point. I agree with pc013...if it is really taking you this much effort to take in this little information then you can't use this skill to make money with. Which you have stated to be your primary motivation.
  10. I agree...1000%... You know that as a programmer you actually have to come up with things on your own right? you can't run off to a forum for every single minor question you have. You can't tell your client you won't be able to make your deadline because "no one is replying to my post!". seriously you have the page right in front of you. There is no reason for this topic to even exist. it's like I walked through a door but can I walk back through the door as well....
  11. First impulse: create a topicreceive answersignore answersrepeat step A
  12. yet again you fail to read the entirety of the post. Also YOU were the one trivializing(in waarde verminderen <- Dutch so he understands) the story by going "well well I moved to two different countries in two years!"
  13. I seriously don't understand why people still bother with you. You are the most ignorant and rudest person I've seen on these forums. Are you really that stupid or intentionally trolling? This girl lived in a nightmare where she was constantly harassed and discriminated against because she was "just" a girl. Yet she pulled through and became a professional programmer in the same time it took you to.....make a html page? As for your "programming" career, please do us all a favor and quit. You don't have the skills required you put 0.01% effort into your code and when people tell you what YOUR doing wrong with YOUR code you blame everything except yourself even though YOUR the programmer. Every time it's a single bad excuse after another. "the air here isn't nice enough!" " there's a fly on my table" "there's a full moon tonight" "I'm hungry!". I do know your background because I've been watching you like the rest of this forum and there are Zero, 0 ,none, null, geen enkele(that's Dutch just for you) reasons why you should not be able to learn this stuff. Now it's time for you to get realistic and say "you know what I can't learn this stuff I need to to something I CAN do and be productive" how do you expect to get hired by a client if it takes you 3 months to make a basic homepage where a 9 year old does that in less than a SINGLE DAY?
  14. if I made an element that contains an array and append it to every record my script produces would this be achievable?
  15. elexion

    Next step?

    it is you just don't realize it........just take the man's word and take the lesson in.
  16. how do I add this score for each record out of a database?record1[unique score]record 2[unique score]
  17. hey guys, I've been working on a small script that calculates a score based on radio boxes function calculate_score(questions, score){ //the current score of the user is 0var current_score = 0;//the maximal score is fivevar score_default = 5;//in order to get the maximal value for each question(s) asked we're going to multiply the max score by the amount of questions //as defined in the second parametervar max_score_per_question = 5 * questions;//we want to calculate how much a user gains per decision he makes var score_per_segment = parseFloat(score_default / max_score_per_question);//-- -- -- -- -- --var score_something = parseFloat(score_per_segment * score); current_score += parseFloat(score_something);document.getElementById("total_score[i]").innerHTML=""+current_score;} I know the calculations are accurate the only problem is it doesn't add up when there are several questions echo "<td>1<input type='radio' name='vraag[]' value=1 onclick='calculate_score(".$aantal.",this.value)'/></td><td>2<input type='radio' name='vraag[]' value=2 onclick='calculate_score(".$aantal.",this.value)'/></td><td>3<input type='radio' name='vraag[]' value=3 onclick='calculate_score(".$aantal.",this.value)'/></td><td>4<input type='radio' name='vraag[]' value=4 onclick='calculate_score(".$aantal.",this.value)'/></td><td>5<input type='radio' name='vraag[]' value=5 onclick='calculate_score(".$aantal.",this.value)'/></td></table></form>"; given the HTML I wonder if it's because everytime I click a radio box the value is set to 0 again....any tips?
  18. yes this is possible. Remember as a programmer it is your job to make it work the sky is the limit. As for the code you should start off making a form to pass the values on to another page that will process the data and bring the user to the page.
  19. unless your going to retrieve values from a database I don't see any reason to use PHP. I'm sure you can craft something like this in javascript.
  20. I'm thinking for each but...that doesn't work out...I need it to treat each record separately....also I need increment the total_score array of the span element so that the score is displayed underneath each record.... maybe I should do something with ID? or maybe a break.....
  21. hey guys, I'm having some difficulty with this post request... function submit_data(par1,par2,par3,par4,par5){var xmlhttp;if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); }else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.onreadystatechange=function() { console.log('readyState is => ' + xmlhttp.readyState); if (xmlhttp.readyState==4 && xmlhttp.status==200){document.getElementById("span").innerHTML=xmlhttp.responseText;} }xmlhttp.open("POST", "submit_survey.php",true);xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xmlhttp.send("name="+par1+"lastname="+par2+"street="+par3+"zipcode="+par4+"hometown="+par5);} When I go through the process using the google chrome console, the network tab tells me that the file is never called for some weird reason the console log tells me this readyState is => 1test.php:42 readyState is => 4when I hover over the initiator tab it shows me the full URL of test.php and somehow there's a new parameter in front of par1 can anyone spot anything wrong?
  22. problem is when I try to rate question 2 it fills/overwrites the score of question 1
  23. that's one bad ###### *cough* awesome site I'll agree on that . Yeah I'm pretty sure you can do that although it won't be easy but don't get me wrong I could be mistaken. Also a cool thing to look at is webGL www.chromeexperiments.com/webgl
  24. Sure thing I've relocated the span tag so that it is included at every record but the score only appears at the last span
  25. hello everyone, I've been working on a script that reads records out of database each record is a small array of questions(basically a survey system), per record a total score is assigned(this is the Javascript part) //echo the question list from the database$query_questions = mysql_query("SELECT * FROM `vraag`");while($result = mysql_fetch_array($query_questions)){//displaying the questionsecho "<br /><br /><b>";echo $result['header']. "</b><br />";echo $result['beschrijving']. "<br /><br />";echo $result['onderwerp']. "<br />"; //sneaky rogue values!$aantal = $result['aantal_vragen'];//this is a troublesome part of code as well I'll elaborate on this further down the postecho "<input type='hidden' id='number_of_questions' value=".$aantal." mousedown='calculate_score(this.value,0)'/>";$array = unserialize($result['vraag']);//the question list is stored in an array which I'll read out later//retrieve the content from the array foreach($array as $value){//below I created five radio elements because I want people to give each question a score from 1 to 5 I //used the form tag so that each each row of radio boxes would behave properlyecho "<form><table><td>". $value."</td>";echo "<td>1<input type='radio' name='vraag[]' value=1 onclick='calculate_score(".$aantal.",this.value)'/></td><td>2<input type='radio' name='vraag[]' value=2 onclick='calculate_score(".$aantal.",this.value)'/></td><td>3<input type='radio' name='vraag[]' value=3 onclick='calculate_score(".$aantal.",this.value)'/></td><td>4<input type='radio' name='vraag[]' value=4 onclick='calculate_score(".$aantal.",this.value)'/></td><td>5<input type='radio' name='vraag[]' value=5 onclick='calculate_score(".$aantal.",this.value)'/></td></table></form>";}}echo "Uw totaal score is: <span id='total_score' name='span[]'></span>";echo "<br /><form action='submit_survey.php' method='POST'><input type='hidden' name='total' value='total_score.value' />Naam : <input type='text' name='naam_opleider' /><br />bedrijf: <input type='text' name='bedrijf' /><br />Straat: <input type='text' name='straat' /><br />Postcode, Plaats: <input type='text' name='postcode' /><br /><input type='submit' value='versturen' /></form>"; what goes wrong is that it uses the last record of the query as the value to calculate with, it ignores the first record and the second and only picks up the last(third) record I want it to assign a score per record so shortly drawn out[record 1]score [record 2]score [record 3]score currently it works like this[record 1] [record 2] [record 3]score So shortly how do I fix this? I don't think the javascript is essential to the problem but if necessary I can include it :)edit note: There are no syntax errors purely functional I removed a for loop that wasn't really doing anythingthanks in advance
×
×
  • Create New...