2,040 Posted Topics
Re: You need to update your line 7. Currently, you copy over the HTML content from the clicked one to the new one... | |
Re: There are a couple suggestions from me. 1)Please follow the [naming convention](http://pear.php.net/manual/en/standards.naming.php). You should NOT start with capitalized for a variable. It is very confusing to maintain the script later on. 2)You must NOT directly use user input in your query. You need to sanitize it before hand. This is … | |
Re: I don't know why you would have an interview question like that... It is NOT trivia to implement a pseudo RNG without using any API. [Here](http://www.cryptosys.net/rng_algorithms.html) is a link to some algorithms. I learned it in school a long time ago, and I never used it anymore. One common thing … | |
Re: In programming, it is reasonable to have those many checkboxes. In usability, it is not because it will be too much work for a user to do in one page. If you have that many questions with each having many checkboxes, group them and/or separated them into smaller number for … | |
Re: Maybe this [post](http://stackoverflow.com/questions/13459516/php-mysql-group-by-to-get-latest-record-not-first-record) could help... | |
Re: You need to check for null value before empty... Swap the condition and it should be OK. | |
Re: If your current list is what you said, to access it would be... var len = list.length; for (var i=len-1; i>=0; i--) { // for removing data var data = list[i]; // check Date existence if (!data["Date"]) { // do something, for example, alert and remove it alert("Invalid date data … | |
Re: >I cannot figure out how to make it so when I insert the file name to the database that it matches the row id, of that insert. I don't get it... Do you mean call the addBanner when a user upload a file??? Or update the data? Or else??? | |
Re: I don't know what the language is, but if you look at it carefully... IF (AH_BL_Date+IF (Air Shipment,1,SUPP CI LEADTIME)='01/01/1901'DATE,'00/00/0000'DATE,AH_BL_Date+IF (Air_Shipment,1,SUPP CI LEADTIME)) Let's say 'AH_BL_Date+IF (Air Shipment,1,SUPP CI LEADTIME)' be equal to 'A'; then it will be... If A = '01/01/1901'DATE, Then return value '00/00/0000'DATE Else return value '01/01/1901'DATE … | |
Re: From the display, you need to select an image to upload first. Then the Update Image Setting would be used if and only if you want to update the content inside the gray area where the button is. This seems to me that when you save/update the image, you do … | |
Re: Here is my take on your original code without suggesting a better algorithm. 1) You are looping through the size of `text` string, but your intention is to loop through the `scan` size. Take out the `for-loop` scope that wrapping around the content (line 5 & 16). Then it should … | |
Re: How about look at this sample [implementation](https://www.owasp.org/index.php/Using_the_Java_Cryptographic_Extensions)? I am not sure if your implementation is really AES... | |
Re: Are you talking about deleting a row in the 1st table, so the data in 2nd table should be removed as well??? | |
Re: Here is my guess (I am not coding in JQuery). When the function is called, the closing button object is created the first time. Then it is properly added to the clone container. Once a user closes the container, the object is still there, but the `click()` function has been … | |
Re: Because recent modified files do not have year number display in the list. You may try `ls -la --full-time` and will have to update some of your display. #!/bin/bash year=$(date +"%Y") if [ $# -gt 0 ] ; then year=$1 fi echo $year list=$(ls -la --full-time | awk -v pattern="$year" … | |
Re: Also, if you are talking about the real page-not-found (i.e. a user type in the address bar with some other page name), you may need to update your URL ReWriting rules of your server configuration, which is a different issue. | |
Re: Maybe you should compare your format with [this link](https://datatables.net/forums/discussion/5133/ignited-datatables-php-library/p1#Comment_22623). You may need to change the `$this->datatables->edit_column` to be more verbose that that... | |
Re: It depends on how you pass in the id. By the way, are you using Ruby or JSP? If so, you need to escape the double quote `id="<%=rs_list_task1.getString(\"task_id\")%>"` | |
Re: Don't think it will work for any string starting with a number. It will work with string starting with a letter (and followed any other character listed in the regex or none). What is the purpose of this regex? | |
Re: To me, line 25 until the end could be replaced with `return true;` because if and only if `t->data` is equal to `d` would get to that point (or the value would be null). I believe the problem with the OP could be from inserting a node to the tree. … | |
Re: If the object is going to be in group, why not use an image instead of javascript rendering? | |
Re: One thing, please watch out when the buttons should be display. If a user has already voted for (like or dislike), the buttons should not be display again (and the server should still know that the user has already voted and will ignore any other incoming vote from the same … | |
Re: Not sure what is that query? The reason is that it will very likely return an empty row back because of your WHERE clause... My question is, why do you think it will create new "table" (not "row")? What functionality or command are you using that implies what you said? | |
Re: Depends... If you know the exact format, you could simply use `replace()` function. var newLoc = window.location.href.replace(/\?code=\d+/i, "").replace(/\&code=\d+/i, ""); The above means the location with either `?code=####` or `&code=####` will be removed from the URL. However, this is for exact format & variable that you know before hand. The different … | |
Re: You start the session, but did you save the value in your session as well? You could take a look at [this site](http://php.net/manual/en/function.session-start.php) as an example... | |
Re: Horrible way of checking... if(n-((long)n)>0.0) // check if the number contains decimal places scr.setText(""+n); // it does, write it out as is else scr.setText(""+((long)n)); // it doesn't, display w/o decimal if(n>=Long.MAX_VALUE || n<=Long.MIN_VALUE) { // check if out of `long` range scr.setText("0"); // it is out of range, display 0 … | |
Re: Well, you need to learn... 1)A\* search algorithm 2)Javascript That's it. First you need to understand how to do the search to get the result using A\* algorithm. Then you write script in Javascript to follow the A\* search step-by-step. ;) | |
Re: I am not really sure what you want to do here. Do you want a display data read from your database or a call to another server, and then put the display in a frame? Do you want it onclick, onchange, or use a submit button? Please do not use … | |
Re: Your current snippet shows that you simply display whatever the user puts in the textarea, but the content will never be stored. As a result, the content will disappear everytime the user click 'Post' again. Do you have any database on your backend (server)? You need to save the content … | |
Re: I think the reverse of XOR is XOR itself as slavi mentioned??? public static void main(String[] args) { int num1 = Integer.parseInt("0101110110", 2); int num2 = Integer.parseInt("0010110100", 2); System.out.println("Int1: "+num1+" | "+Integer.toString(num1, 2)); System.out.println("Int2: "+num2+" | "+Integer.toString(num2, 2)); int num3 = num1 ^ num2; System.out.println("Int3: "+num3+" | "+Integer.toString(num3, 2)); int … | |
Re: As minitauros said, you should consider the field type of `varchar` rather than `text`. That's the optimization at table level. How to search for a substring, you need to use the `like` keyword and the '%' at both end of your substring. SELECT * FROM table_name WHERE field_name like '%sub_string%'; | |
Re: Or how did you start the process? If you use windows scheduler, you should be able to set for only one process running. If you manually start or use a script to run (not windows scheduler), stultuske would be the way to go (even though you catch all exceptions, you … | |
Re: You could, but you also have to make sure that 1)the file exist, 2)the path to file is correct, and 3)you have permission to read/write the file. If any of those failed, your script won't correctly work. That's all. | |
![]() | Re: I am not sure if you could actually define `ng-app` at the top most level (html tag). It may be used in `div` tag, but have you tried it in `body` tag instead? |
Re: One thing to remember, you may need to watch out how you name database column. If it is a foreign key ID, you should have the ID at the end of the field. It could be confusing if you have not touched it for a long while especially with big … | |
Re: There is no way to recover from mysql delete (unless you have a way directly recover your HD for the part that is marked as delete from file changed, but will never be a full recovery). That's why the DBA needs to backup the data every now and then (or … | |
Re: You could do it from PHP level, or you could use the [rewrite rules](https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/) of htaccess (which is not PHP)... | |
Re: Do you have any host running on your local machine? If so, check the port your server is listening as well. | |
Re: The semi-colon indicates the line to be commented. So the line starting with `For Win32` seems to be a comment line to me. Thus, no need to remove the semi-colon... | |
Re: To add more... `explode()` is the newer/safer version of `split()`. However, `split()` has been deprecated since version 5.3.0. | |
Re: As I already pointed in the different topic, Lines 58-59, 65-66, 72-73, 79-80 are not logically correct. //# i.e. $state[$index] = $state[$index-3]; $state[$index-3] = $state[$index-3] - $state[$index]; //This means the same as $state[$index] = $state[$index-3]; $state[$index-3] = 0; You need to review your algorithm... | |
Re: There are TOO MANY possible reasons. One is already stated by Traevel (cross-domain call)... 1) You are using PHP script but you are calling on ASP? This part smells fishy. 2) What browser did you use to test this? 3) Do you intend to make a synchroneous ajax call? You … | |
Re: Actually, the OP is asking how to validate user password from the database. However, first, you need to check how you store the password in the database. Practically, you should NEVER store the password in plain text in the database. You need to encrypt it somehow and save in the … | |
Re: What is the error? Also, you may need to look at how to set up Apache tomcat with the version you are using (i.e. [version 7](http://tomcat.apache.org/tomcat-7.0-doc/setup.html), [version 6](http://tomcat.apache.org/tomcat-6.0-doc/setup.html)) | |
Re: Hmm... Maybe this [post](http://stackoverflow.com/questions/13272230/mysql-sum-columns-from-multiple-tables-based-on-multiple-ids) could help... | |
Re: What was displayed on the console log? And what did you get in Ajax? Did you sort it before you pass to Ajax? | |
Re: Agree with broj1. You initiated the `$data` variable if image id is passed to the page (Line 7), but you did NOT initiate the same variable if there is no image id. Then, all of the sudden, you attempt to use the variable on the page... | |
Re: Hmm... If the part you modified is the data part, it could break certification because the checksum may be involved in the process when issue the certification. If the part you modified is the execution part, then it could easily break the assembly code. Would that give you some idea? | |
![]() |
The End.