1,576 Posted Topics

Member Avatar for morfious90

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 …

Member Avatar for pclfw
0
422
Member Avatar for divinity02

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.

Member Avatar for Taywin
0
182
Member Avatar for zebnoon1

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 …

Member Avatar for zebnoon1
0
517
Member Avatar for OtepTheThird

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?

Member Avatar for OtepTheThird
0
116
Member Avatar for davy_yg

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 …

Member Avatar for hericles
0
155
Member Avatar for AmrMohammed

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 …

Member Avatar for isozworld
0
268
Member Avatar for Pyler

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 …

Member Avatar for Pyler
0
208
Member Avatar for rebintahsin

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 …

Member Avatar for gusano79
0
406
Member Avatar for davy_yg

you should use the line-height option on the <ul> element. Height has no effect

Member Avatar for Violet_82
0
213
Member Avatar for dimitris.dimitri.73

You haven't mentioned what result you are after... Do you just need a calendar control? Because they exist in .Net.

Member Avatar for J.C. SolvoTerra
0
214
Member Avatar for chubbyy.putto

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 …

Member Avatar for AndrisP
0
112
Member Avatar for chubbyy.putto

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 …

Member Avatar for safeer008
0
143
Member Avatar for ehpratah

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.

Member Avatar for ehpratah
0
344
Member Avatar for patk570

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 …

Member Avatar for kimhanu
0
247
Member Avatar for andrew909

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?

Member Avatar for kplcjl
0
285
Member Avatar for ParPau

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;

Member Avatar for JamesCherrill
0
2K
Member Avatar for robert veach

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.

Member Avatar for RobertHDD
0
182
Member Avatar for Blueie

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.

Member Avatar for Blueie
0
371
Member Avatar for markii.borabon_1

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?

Member Avatar for markii.borabon_1
0
277
Member Avatar for castajiz_2

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 …

Member Avatar for hericles
0
210
Member Avatar for davy_yg

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

Member Avatar for diafol
0
299
Member Avatar for GIFT_2

Post up what you've done so far and we'll provide some help. But we won't just give you the answer.

Member Avatar for hericles
0
23
Member Avatar for Blueie

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 …

Member Avatar for JorgeM
0
125
Member Avatar for Bensirpent07

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'.

Member Avatar for Bensirpent07
0
387
Member Avatar for davy_yg

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.

Member Avatar for davy_yg
0
347
Member Avatar for sammry

If the table rows get deleted and you want to reset the primary key just use `TRUNCATE mytable;`

Member Avatar for matrixdevuk
0
2K
Member Avatar for gcardonav

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 …

Member Avatar for gcardonav
0
324
Member Avatar for Nurul_2

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 …

Member Avatar for kamini_1
0
181
Member Avatar for Gurjit_1
Member Avatar for Gurjit_1
0
221
Member Avatar for superior7867

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/)

Member Avatar for veedeoo
0
346
Member Avatar for BibhutiAlmighty

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)

Member Avatar for JOSheaIV
0
146
Member Avatar for Hassan_9

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 …

Member Avatar for Hassan_9
0
117
Member Avatar for ooshaonline

It looks like that particular .so extension file is missing. Can you browse to that directory and confirm it isn't there?

Member Avatar for hericles
0
40
Member Avatar for divinity02

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 …

Member Avatar for Slavi
0
173
Member Avatar for razar63

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. …

Member Avatar for hericles
0
290
Member Avatar for thilinam

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.

Member Avatar for mtyide
0
1K
Member Avatar for razar63

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?

Member Avatar for matrixdevuk
0
397
Member Avatar for KetraCoder

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 …

Member Avatar for JamesCherrill
0
254
Member Avatar for awahqn

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?

Member Avatar for gabrielcastillo
0
4K
Member Avatar for grakovski

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 …

Member Avatar for Isaac_4
0
388
Member Avatar for Alison_3

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 …

Member Avatar for hericles
0
2K
Member Avatar for BibhutiAlmighty

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)

Member Avatar for castajiz_2
0
132
Member Avatar for BibhutiAlmighty

Try pictureBox.Bounds.IntersectsWith(). That should detect the edges of two objecs meeting.

Member Avatar for hericles
0
237
Member Avatar for BibhutiAlmighty

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 …

Member Avatar for ddanbe
0
165
Member Avatar for cemonica

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?

Member Avatar for Schol-R-LEA
0
199
Member Avatar for lyndata

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 …

Member Avatar for danielpeterson
0
197
Member Avatar for razar63

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.

Member Avatar for razar63
0
335
Member Avatar for efe.ozyer
Member Avatar for hericles
0
129
Member Avatar for jjones0150

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 …

Member Avatar for james6754
-1
149
Member Avatar for castajiz_2

The End.