hericles 289 Master Poster Featured Poster

You've given your labels a width of 200px which is pushing everything over to the right.
You should get used to using the developer tools in your browser (if you don't already) as copying your code and looking at the element in the inspector I used Chrome) made this trivial to see.
And sometimes tables have a use over divs. This looks like a tabular layout to me and placing it in a table does make a certain sense.

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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 place.
But your question is unclear. Am I on the right track?

hericles 289 Master Poster Featured Poster

I'm not sure what you're doing wrong then but line-height applied to the <ul> element affects the height of each <li> in the list.
I just tried it on your own code and I could alter the line-height. With a line-height of zero they all compacted on top of each other, which is as small a line-height as you can get.

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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 as tokenizing characters as well  */
$tok = strtok($string, " \n\t");

while ($tok !== false) {
    echo "Word=$tok<br />";
    $tok = strtok(" \n\t");
}
?>

As you can see, $tok is used repeatedly to move through the string. SO if you did a loop like the one above further calls to strtok should move through your string.

hericles 289 Master Poster Featured Poster

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.

hericles 289 Master Poster Featured Poster

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 before sending if that is going to be a problem.

hericles 289 Master Poster Featured Poster

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;

hericles 289 Master Poster Featured Poster

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?

hericles 289 Master Poster Featured Poster

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.

hericles 289 Master Poster Featured Poster

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 the two tables.

hericles 289 Master Poster Featured Poster

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 burden to your website. But if you're worried about blow back, that would help minimise it.
The increased usage of their website may not be as bad as you think. I'm assuming people interested in the app were already using the website, as you're just serving up that same data by another means.
The legality of it? tricky. As long as you're not hurting their bottom line or making public data that was private, you should be OK (thats not legal advice)

castajiz_2 commented: tnx for the answer! +4
hericles 289 Master Poster Featured Poster

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?

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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 because your second condition is the same as the first.

hericles 289 Master Poster Featured Poster

Have the default CSS class set as you like it to be and remove that class when you the error class
$('#lblResult').removeClass('default');
That class will be used unless the label contains the word error.

hericles 289 Master Poster Featured Poster

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 to create the warning CSS class of course.
I haven't tested that code but it should pretty close to what you need.

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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 the need for the directory structure.
Which one is closest to your goal?

hericles 289 Master Poster Featured Poster

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 a UPDATE statement. You don't the FROM for example.
The mysql docs might be useful Click Here

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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 ELSE {} will work because there are no other values you're interested in. NOTE: you'd need to change your other IFs (except the first one) to ELSE IF for that to work.

hericles 289 Master Poster Featured Poster

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.
But from the error you gave, it still the < that is causing the problem. What should $pid be?

hericles 289 Master Poster Featured Poster

undefined index means you tried to access an array position that didn't exist. E.g. $array[10] when $array only has five elements. Associative arrays have the same problem e.g. trying to get $array['bob'] when that isn't in the array.

Which lines is giving the error? At a glance your code looks OK

hericles 289 Master Poster Featured Poster

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.

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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
Java code:

for (int i = 2; i < 1000; i++) {
    for (int j = 2; j < i; j++) {
        if (i % j == 0)
            continue outer;
    }
    System.out.println (i);
}

Bytecode:

iconst_2
1:   istore_1
2:   iload_1
3:   sipush  1000
6:   if_icmpge       44
9:   iconst_2
10:  istore_2
11:  iload_2
12:  iload_1
13:  if_icmpge       31
16:  iload_1
17:  iload_2
18:  irem
19:  ifne    25
22:  goto    38
25:  iinc    2, 1
28:  goto    11
31:  getstatic       #84; // Field java/lang/System.out:Ljava/io/PrintStream;
34:  iload_1
35:  invokevirtual   #85; // Method java/io/PrintStream.println:(I)V
38:  iinc    1, 1
41:  goto    2
44:  return

Its pretty obvious which one I would rather type out and develop with.
In answer to your question, yes, your program can be written in bytecode because that is what compiled java is.
Apparently there are 198 bytecode instructions (from the wiki page above) so learning it and writing in it is possible but the real question is why would you want to?

hericles 289 Master Poster Featured Poster

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 the event viewer and find the error logged just before it shut down. This will help you.
The event log fills up pretty quick with a lot of stuff but look for events at the time it shut down, the one's you're interested in will either by marked by red or yellow exclamation marks.
Once you've found it, if it isn't obvious what the cause is, add the log message back into this thread.
And if it is the keyboard, I don't think they would cost too much to replace. They're cheap to buy and the repair time is minimal.

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

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

hericles 289 Master Poster Featured Poster

Sounds like you need ShowInTaskbar. More about it here: MSDN site

hericles 289 Master Poster Featured Poster

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 those positions.
For your example you would search the array (E,D,A,N,I,W,E,B) and get the locations 0 and 6.
So, in your displayed answer you would replace characters 0 and 6 with the 'E'.

hericles 289 Master Poster Featured Poster

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?

hericles 289 Master Poster Featured Poster

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.

hericles 289 Master Poster Featured Poster

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?

hericles 289 Master Poster Featured Poster

You have $scope.works and work.properties. I imagine 'work' would need to be plural.

hericles 289 Master Poster Featured Poster

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.

hericles 289 Master Poster Featured Poster

Bootstrap uses 3 breakpoints at 768, 992 and 1200px. Giving extra small (below 768), small (less than 992), medium (over 992) and large (over 1200).

hericles 289 Master Poster Featured Poster

Do you mean swipe?

hericles 289 Master Poster Featured Poster

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 similar to Java in syntax.

I didn't learn Ruby as a beginner but I've heard others say it is fairly intuitive if you're new to coding.

hericles 289 Master Poster Featured Poster

Although you are setting a session you aren't putting anything into, or passing values via the form.
This means that on each page reload $_randNum isn't set as the page is 'new' and has no variables being passed to it or being retrieved from the session.
To add the rand number to the session:
$_SESSION['rand'] = $_randNum;
To retrieve:
if(!isset($_SESSION['rand']))

hericles 289 Master Poster Featured Poster

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 done so far and what you're stuck on.

hericles 289 Master Poster Featured Poster

I've used both to some degree although I have more experience with MailChimp.
They're both pretty good and I can't fault either too much but MailChimp was a better product in my opinion.
It's reasonably easy to learn, has some good importing/exporting features, a strong API and good support.
I didn't use the predesigned templates on either one too much but from what I did see they both had a reasonable range that looked well designed.
And I'm not affiliated with them in anyway.

hericles 289 Master Poster Featured Poster

You're asking a lot in one question. Do the websites you want to draw data from have public APIs available? If they do then the documentation for those APIs will have all the answers you need.

hericles 289 Master Poster Featured Poster

You never initilise scoreCount so any instances of
scoreCount++;
will fail. You need to include
int scoreCount = 0;
at the start (as you have done for totalScores.
And scoresArray is declared as scoreTotalsArray so you just have the variable name wrong on line 106.

hericles 289 Master Poster Featured Poster

I'm not sure how getting the integer value at the start of the addBtn_Click method and checking if it is between 0 and 100 could fail.
Could you post up the code section where you make the check (by which method mentioned above)?