• Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Difference between char* and char []

    Never assign raw data directly to an uninitialised pointer. If done so, where would the pointer point to? Where will the raw data be stored? Maybe it will compile, maybe …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Undefined variable student_id

    Line 164 uses $student_id but $student_id may not have been declared. This occurs when line 138 condition is false.
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Simple image displaying php error

    Each image has a file name, and a parent directory (path). What does the images_path field in your database hold? File name, path, or both? `$src=$file_path.'/'.$row["images_path"];` Your code already concatenates …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Problem with using vectors for practice problems

    That is because prime number i does not correspond to the index of the vector. Everytime you push a value into a vector, it takes the (n+1)th address. So, if …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Question about structures

    This might make you better understand: #include <iostream> using namespace std; struct sct { int t1[2]; }; struct str { sct t2[2]; }; int main(void) { str t3[2] = { …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Php/MySQL Issue: "Access denied for user 'vangua01'@'localhost' (using pass

    One thing you could do, as I said, is to send just the avatar names with Post, and remove the use of $action altogether, making the script one continuous function.
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Php/MySQL Issue: "Access denied for user 'vangua01'@'localhost' (using pass

    My $0.02 Second life calls your script with three possibilities: a) open a connection; b) insert a row and; c) close the connection a doesn't have problems, although it does …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in OleDbException was unhandled(syntax error in INSERT INTO statement)

    For field names, you don't need apostrophes, only square brackets. For example, **assuming Block No, Lot No, Number of Occupants and Age need integers**: oleDbCmd.CommandText = "insert into [Personal Data] …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in OleDbException was unhandled(syntax error in INSERT INTO statement)

    If your field needs numbers, you won't need apostrophes surrounding your value. I suspect the Block No., Lot No., ages, Number of xxx etc. needs integers? Even the date of …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in OleDbException was unhandled(syntax error in INSERT INTO statement)

    For field names with spaces, encapsulate them in square brackets. If you still encounter syntax errors in your queries, try displaying them into message boxes before executing them, and post …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Syntax and logic error

    Try [this](http://lmgtfy.com/?q=syntax+runtime+and+logic+errors).
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Project Euler 18 Unknown problem

    Basically, you decide the path by going through the higher of the two numbers starting with row 2, and consequently ending up with a binary choice for every row, while …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Server back up!!

    Often times, the site takes too long to load. Occasionally, I get a "waiting for available socket" when that happens (chrome status).
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in hw java error issues.

    checkfee is a local variable in main. Local variables have to be initialized with a value, because they have no default value. Human logic dictates that the conditions in lines …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Write array of bits to serial port

    Have you tried SerialPort.Write method? You want to send that as a string or as a numeric value? Also, please post your code if possible so we can understand the …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Build GUI with complex GridBagLayout

    You get the GridBagLayout and Inset errors, because you have yet to import them. import java.awt.GridBagConstraints; //you replaced this with the static one import java.awt.Insets; Furthermore, check your new GridBagConstraints …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in how to center google map on marker

    Which marker are you trying to set the center to? If it's one of the markers you get from the XML, which one of them (since there can be more …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Insert Last Insert ID into another table

    After an INSERT query, use `$id = $mysqli->insert_id`. It gives $id either the last auto_increment id inserted if there is one, 0 if there's no auto_increment id field, or false …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Self Naming Varibles

    Why not use a list? Or maybe a dictionary?
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Help regarding analyzing a set of ascending numbers.

    First of all, your output is reversed. a<b<c check should be y, while pythagorean check should be x. Anyway, if the output is supposed to be 0 or 1 only, …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in ArgumentOutOfRangeException

    Well, for starters, could you explain the relationship of lv1T1 and lv2T1? Based on the code you've posted, the only way I can see that gives that error is that …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in ArgumentOutOfRangeException

    The contents of listview start at index 0. If there are 25 items in it, their indices range from 0 to 24. Putting 25 there would of course be invalid …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in how to add and retrieve user defined types in vector

    User defined types will pass their pointers, not their contents, when appended to vectors. The memory address of `a` is stored at the first slot of the vector. Because the …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Get highest in row help!

    In that case, there's nothing wrong with the method except line 77: `int highestrow = numbers[0][0]` which should be `int highestrow = numbers[row][0]` to prevent the possibility of error if …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Get highest in row help!

    What's the highest row output supposed to be?
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Computing the average help

    Incorrect. nums.length() gives the number of characters inputted namely: 0 3 4 5 3xcomma; 7 characters in all. You might wanna use the string's [Split](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#split(java.lang.String)) method to get rid of …
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Query help

    Something like this? Selece c1.user_id, c1.company_id, c1.id from complaint3 c1, complaint3 c2 where c1.user_id = c2.user_id and c1.companyid = c2.companyid and c1.id <> c2.id group by c1.id
  • Member Avatar for scudzilla
    scudzilla

    Replied To a Post in Good Old Runtime 91 error

    Isn't it because you're trying to access the object's methods directly using with? Try deleting `objWord` in lines 3, 9, 11 and 15.

The End.