1,576 Posted Topics
Re: You say in your post "If both Conditions are true the if statement should return 1 else -1." But your code does the exact opposite: if @Ucount > 0 and @Ecount >0 Begin set @returncode =-1 end else begin set @returncode = 1 Which is incorrect, your if statement or … | |
Re: Firstly, i is just an integer that you use to loop through with. It isn't the collection of numbers that the user entered. So checking `if(i % 2 == 1)` doesn't help you with your average because it has nothing to do with the input. | |
Re: I'm assuming you removed the password for this post and it is being included in the actual config. The only advice I can give is to double check what you should be passing in. In particular the db name and server. Are you sure it shouldn't be localhost or include … | |
Re: Both of those should work. Is your actual table different from this one? Because if you only have one row and one cell and no other styling how are you observing the width of the cell? | |
Re: The default width of your inputs is the problem. Specify a shorter width for all of your textboxes and you'll be able to make the table narrower. I think the default width of a text input is 20 characters if you don't specify a value and so that will be … | |
Re: You're sorting it as text not numbers which is why you are seeing the result you posted. Numerically, 2 comes after 1 and 11 comes after 2. But textually, '2' comes after '11' which comes after '1'. Does that make sense? You can always parse your text to integers. Or … | |
Re: Is this PHP? The function should be seperating the string into tokens based on the delimiter. In your example 'greeting pe' would become the first token of the tokenised string. The example from the PHP man page may help. <?php $string = "This is\tan example\nstring"; /* Use tab and newline … | |
Re: Do you mean you need a program that can accept inputs in the style of your example and correctly determine the value? I would separate the string on the mathmatical operators (+,-,x, /) and bracket, then use the BODMAS rule to figure out the order for which the operations take … | |
Re: you should use the line-height option on the <ul> element. Height has no effect | |
Re: You haven't mentioned what result you are after... Do you just need a calendar control? Because they exist in .Net. | |
Re: You have a return statement before other code you want to run. Code after a return statement gets skipped because the return state redirected back to wherever it was called from immediately. If you have: return true; disable = false; // this line never gets read You haven't posted up … | |
Re: A 505 server error is caused when the server refuses the HTTP version your browser is supporting. Is that the error you are getting? You also mentioned 'not found' which is a 404. And a user enters a negative where? In a input field? Use javascript to validate the value … | |
Re: You aren't using an ON criteria so you're getting a CROSS JOIN of the two tables, which is a cartesian product. That's why you are seeing rows duplicated. Adding an ON clause will fix it up. | |
Re: You need to use a join. `select flower.*, mystash.* from flower join mystash on flower.something = mystash.something where mystash.name like '%$data%' OR flower.name like '%$data%' ORDER BY name ASC` The two .somethings need to be changed to whatever the two tables have in common. I.e. an ID column that links … | |
Re: If your delete method is in the same class as the rest of the code you could always declare the arrays as globals, making them available to all methods. Then nothing needs to be returned at all. Otherwise, as ddanbe asked, why are objects out? | |
Re: The code that generates that error would be more useful. Can you post that up? But it seems likely your code is trying to access something that doesn't exist as that would explain why height and width aren't real values; | |
Re: Anything show in iTunes if you connect via the cable? You maybe able to trigger a another factory reset that way if it is visible. | |
Re: When you're typing does intellisense provide the name of the file upload control? If it doesn'tthen something is wrong. Actually, looking at your code again I see you gave the file upload control an ID of FileUpload1. You should be using that. | |
Re: How does a query not working send you to a 404 (page not found) error? Is the result being used to create a URL? An incorrect SQl statement should generate a PHP error for you to view. Do you have display_errors on? | |
Re: I'm assuming the app reaches out to the website directly. If you were concerned about the extra usage your app was going to inflect you could have your app call your website, where you cache the screen scraped data, refreshing the cache every x hours. Of course, that shifts the … | |
Re: just go with #admin { border: 1px solid #f6f6f6; } Seeing as you have already specified an ID you don't need to include the table selector. It means the CSS is trying to style a table that is a child of #admin ![]() | |
Re: Post up what you've done so far and we'll provide some help. But we won't just give you the answer. | |
Re: You can use jQuery on the client side to watch the label and when its text changes look to see if thw value contains "error". Based on the result, alter the css class of the label $(document).ready(function() { $('#lblresult').change(function() { if($('#lblResult').val().indexOf("Error") >= 0) { $('#lblResult').addClass('warning'); } }); }); You'd need … | |
Re: In your submit_click function use: `$("#submit").prop('value', 'submitting');` And, of course, if validation fails, use the same line again to reset the value of the button to 'submit'. | |
Re: Save yourself some grief and look online for a javascript library that has that functionality. tablesorter and sorttable are 2 that came up. I haven't either. I have used tablesaw though but it includes other functionality that you may not need. | |
Re: If the table rows get deleted and you want to reset the primary key just use `TRUNCATE mytable;` | |
Re: What exactly is/isn't happening as it should? I did notice, on line 12 of your controller, where you are checking for the word not matching, you have this: `else if ($scope.guess == $scope.wordToGuess)` but it should be `else if ($scope.guess != $scope.wordToGuess)` As it is your failure message won't display … | |
Re: Your're only updating one column in table br here. You can use joins like this to update 2 tables but you'd need to include the second column of the second table in the SET part of the command. To be perfectly honest, the entire command is a bit wrong for … | |
Re: So is this the version that works? What do you add to it that makes it stop working? | |
Re: What you're really talking about is a client side event so its better done in javascript/jquery. Capture the enter key being pressed and use jquery to append the HTML for the new row to the end of div it appears in. [jQuery append example](http://api.jquery.com/append/) | |
Re: Sounds like you need ShowInTaskbar. More about it here: [MSDN site](http://msdn.microsoft.com/en-us/library/system.windows.forms.form.showintaskbar(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) | |
Re: What are you exact requirements? You could store the path to the images in the database, leaving your folder set up as it is. A search of the database will then return a URI pointing to the image. Or you could store the images themselves in the database and remove … | |
Re: It looks like that particular .so extension file is missing. Can you browse to that directory and confirm it isn't there? | |
Re: If you wanted to go with the IF statement there you would need to include each IF separately. `else if(code != 1 && code != 2 && code != 3 && code != 4)` Of course, once you've done IFs for 1,2,3,4 you don't need to do that, a simple … | |
Re: Chrome tells me it is the < on line ten, where you are tring to insert some php. that line `data: {action: addtocart, id: <?php echo $pid; ?> },` If your PHP was being compiled correctly this wouldn't be visible to the browser so I'm gueesing that isn't the problem. … | |
Re: As mentioned earlier, you have onclick="" inside the asb:Button element on the page but no matching button function (button_onclick()) in your code behind. When compiling VS is looking for that function and not finding it. | |
Re: This should work: If isset($_GET['id']){ $productID = $_GET['id'] } What errors are you getting if you check the $_GET variable exists before calling it? | |
Re: Byte code is generated by the java compiler. It is the assemble style instructions your java code is turned into. Although a good programmer will understand the bytecode,should you ever need to review it, actually writing it is pretty inefficient. This sample is from the wikipedia java byte code page … | |
Re: max_input_time can override max_execution_time but this was supposed to have been fixed in 5.3.1. What PHP version are you using? | |
Re: This isn't all of your code is it? Where are you defining $alert and what is it? If $obj is an array then you need to delve into it to get the data you want. If you're unsure of the format of the array use var_dump($obj) to view it on … | |
Re: That message you see would be quite helpful for knowing what the problem is. It seems unlikely it is anything to do with overheating if you can watch a movie but it turns off when you type. The next time it happens, when it has turned on again, go to … | |
Re: The technique you are referring to is called screen scraping.You use a WebRequest object to access a particular URL, capture the stream and then parse through it to locate the content you are after. [Tutorial here](http://www.dotnetperls.com/scraping-html) | |
Re: Try pictureBox.Bounds.IntersectsWith(). That should detect the edges of two objecs meeting. | |
Re: I'll assume you have the answer stored as either a strng or an array. Once the letter key is pressed, search the array or string for the selected letter and find its locations. Once you have those, go to your board that displays the '_' and replace the characters at … | |
Re: You haven't included the called class so we can't see what that does but is there a reason why you called the same method so many times? | |
Re: If you are looking for a fully OOP language to learn then VB.Net is pretty easy. It has the most readable code in my opinion. It's structure and syntax mimics english syntax more than most other languages. And then it is a small step to switch to C#, which is … | |
Re: Double check your GET variables by outputing them via echo or var_dump. Number one cause for that kind of error for me is the variables not getting posted correctly. | |
Re: You have $scope.works and work.properties. I imagine 'work' would need to be plural. | |
Re: Ah, assignments. Good times. As always, most members of Daniweb are here to help but we don't do your work for you. How would you get better if that was the case? We'll help when you get stuck but you need to show some effort first. Post up what you've … | |
Re: Do you mean swipe? |
The End.