Jump to content
Stef's Coding Community

Biske94

Member
  • Content Count

    31
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Biske94

  1. Nice! Thank you LSW for your input! Hahaha Hahaha I didnt, but a nice one!
  2. Hi everyone! I am conducting a research about styles of typing. I have asked some great programmers and experienced ones like Larry Wall (creator of Perl), Robert C. Martin aka Uncle Bob, college professors about styles of typing. I saw in one video (https://www.youtube.com/watch?v=S5S9LIT-hdc) Linus Torvalds touch typing but with his own style. I do myself touch type but with my style, and I have nice speed and everything. Speed and accuracy is something that you build only by practice, practice and more practice. But one question concerns me, should we type in some particular
  3. Biske94

    Hi Nerdz

    Hi everyone! Is this forum active? Lets populate this forum and make it a nice place for nerdz and geeks where we can talk and help each other. :))
  4. Answer: isset() is a function in PHP that will return true if the variable, in this case, $var has been assigned a value. If the variable has been created but nothing assigned, has the value of null or undefined, it will return false. basically, isset($var) says is this variable safe to use or not. Update To explain the differences between a NULL value and an undefined <?php //test 1 is defined, but has a value of null. isset will return false, use causes no error. $test1 = null; var_dump($test1); var_dump(isset($test1)); echo "\n----------\n\n"; //test2 is defined
  5. What does mean that variable is set or not set? (in PHP or general) Does that means: // no var declared $var; $var = 'Some fancy string'; $var = ""; //(empty string) I dont know all fancy terms, but I do know when variable is defined, declared and all that, but I dont know what variable is set means. Thanks in advance, nerdz!
  6. Hi people! Since I couldnt get answers from Stackoverflow I desiced to ask you. Can someone explain how does these 2 functions work: class_exists() spl_autoload_register() Class exist function if(class_exists('User')){ echo "It does exists"; } class User { /* Some code here */ } // the output of file is "It does exists" So how does this function works? Scans whole file? Whole directory? I mean its called before I defined class. Spl autoload register function include 'functions.php'; // <- file where is the function class_exist('User') a
  7. Hi i have encountered one quirk in PHP, and I was wandering if anyone can explain it to me. So writing this code gives me infinite loop public static function find_this_query($sql){ global $Database; $result_set = $Database->queryFunction($sql); $theObjectArray = array(); $var = $result_set->fetch_assoc(); // I put the whole array in $var while($row = $var){ // and then I put that here // some code here } return $theObjectArray; } Buuuut this doesnt public static function find_this_query($sql){ global $Database; $result_set = $Database->qu
  8. Depends, for instance I like multiple sources, books, internet, video clips, whatever
  9. Okay this is a newbie question but I know how it works but I just want to know how. So this code for example: if(isset($_POST['submit'])){ // do some stuff } else { // do some else stuff } This if statement will only do its code block if submit button is clicked or in nerds language if $_POST['submit'] is set. So thats means that value of that submit button is NULL before clicking, but when we click that submit button we are giving it a value? For example <input type="submit" name="submit" value="someAwesomeValue"> if I click this b
  10. I bought it I thought I can watch it on the website and have those quiz questions anyway thanks!
  11. Yo Stef, I finished IWD course and I have bought Python course, can u add it? Thanks!
  12. Hi nerdz! What books about programming can you recommend me? Some books that every programmer needs to read or any good one? Thanks!
  13. Well thats nice story and question you got there fellow nerd. Everyone will give you a different answer, opinion, thoughts, advice and so on... so here are my thoughts, I hope they will help you. You see, I am 23 years old, and maybe few years back I didnt know what I wanna do in my life, what type of work, nothing. I went to ITC college for telecommunications and really I didnt like that. In the third year of my college I found out that I like programming, that I wanna do that do that, I wanna be programmer. Since I found out that I wanted to learn programming but I didnt have any directio
  14. Well hello there Natan Dont feel abandoned, nerds are comming I am gonna write you in the next post the answer
  15. What is the difference between statements and functions? For instance why dont we type include('somefile.php') or echo('Hello World') ? Thanks!
  16. Sorry for responding late. Well depends, since I live in Serbia, good drivers do know about mechanics of their cars. For instance, every slight changes on their cars they do feel it and know what is wrong. Of course many of them just know the basic stuff. Thats what I want, to know the basis of computers and something that a programmer needs to know about them :)
  17. Biske94

    video lag

    Hmmm I didnt expierence that. Try some other internet browser to watch that clip. I would recommend you continue learning this course, because I had great experience learning Enjoy!
  18. *answers in porg* P.S. The code is strong in you.
  19. I get it now! Thanks Stef! :))
  20. Oooh so it put all data in assoc array, lets say it put 5 rows of data, and the while loop loops 5 times then? I am asking because there is no incrementation, how does it know where to stop? Thanks Stef.
  21. Happy New Year everyone, I wish you a good health and happiness, for the rest... it can wait
  22. Hi people, I have one question about mysqli_fetch_assoc in a while loop. $query = "SELECT * FROM category "; $result = mysqli_query($connection, $query); while($row = mysqli_fetch_assoc($result)) { $cat_id = $row['cat_id']; $cat_title = $row['cat_title']; echo $cat_id . " " . $cat_title ."<br>"; } So, how does $row = mysql_fetch_assoc($result) works? So it loops one row at a time from $results and stores that information in $row until it there is no row to return? And this mysqli_fetch_assoc($result) in while loop iterations is th
×
×
  • Create New...