hericles 289 Master Poster Featured Poster

In PHP :: is used to denote a static class i.e. one that does not need the class to be instantiated first.
If the method is not static you need to instatiate the class and then access the method via $class->someMethod().

hericles 289 Master Poster Featured Poster

C++ would be useful, so would java. You could consider C# but do some research into it's usage as a game platform first. A lot of games are written with special game engines now so you could consider things like Unreal and Unity.
And graphics are, of course, very important so you might want to learn OpenGL or similar

hericles 289 Master Poster Featured Poster

Any more explanation beyond 'PhoneGap doesn't work'? I ask because PhoneGap does work, proven and tested by a lot of developers, myself included.
I would have suggested either of those two you list because there aren't many other options. A mac VM is apparently an option but the last time I looked into that it was a breach of Apple's restrictions and therefore technically illegal.

hericles 289 Master Poster Featured Poster

Is this a mobile app? If it is you can use sqlite instead, it is supported pretty well in objective c so I guess Swift is the same (haven't got around to updating my iOS knowledge base yet).
Otherwise, if you need to connect to a remote MySQL serve you may have to add another layer, a PHP webservice or similar, that the app connects to and that passes the requests on to the database.
Then you just need to pass info back and forth as JSON and you shouldn't have any issues.

hericles 289 Master Poster Featured Poster

Try using .equals() instead. That should accurately compare the actual values of the two variables.

hericles 289 Master Poster Featured Poster

If it says the variable $wpdb is null then it's null.
I assume you are setting $wpdb somewhere else. You say you've defined it but have actually instantiated it?
You'd need to have a look at that code then as that is where your troulbe most likely lies.

hericles 289 Master Poster Featured Poster

Filtering the query goes a long way to protecting yourself but you should also enforce strong passwords and the like.
Also consider that sometimes an attack will happen in which case you need to consider recovery rather than prevention. Make sure you regularly back up everything essential so if needed to can roll back and lose very little data.

hericles 289 Master Poster Featured Poster

You can use this:

.label:after {
   content: '*';
}

You can add colors and stuff into that class as well.

hericles 289 Master Poster Featured Poster

White hat obviously, unless you don't want to be at the top for long...
No offence but I often wonder how easy people think it is to get to position 1. If it were easy everyone would do it (which of course is impossible) - There can be only 1 - for each search term.
Speaking of which, what search term(s) are you aiming for? That'll have a large impact on likely you are to achieve your goals. And backs links, lots and lots of back links.
Use Alexa to see what you're up against. Get the top spot for your search term, drop it into Alexa and see how you compare to them.

hericles 289 Master Poster Featured Poster

When the user logs in return their category then:

SELECT category WHERE name = ?name AND password = ?password;

Then a simple IF statement decides what form to send them to based on the returned category and redirects as needed.
As an added advantage you don't need the user to remember what they need to type into that textbox to get to the right form.

hericles 289 Master Poster Featured Poster

The only thing I can see is that you're missing the final semi-colon (;) on the statement.
If it isn't that, can you provide the actual error message?

hericles 289 Master Poster Featured Poster

You just need to do another query after the user is successfully logged in that retrieves their details. You should be storing the user ID i.e. the key for users table in session so you can access it when you need to make calls to the database.
That way, after a successful login, you can redirect to their profile page and from that page make the query to retrieve their user profile via their ID.

Homework for you: learn about SQL injection attacks and why you should parametize queries. You're putting the text of a textbox directly into your query which is a really bad idea.

hericles 289 Master Poster Featured Poster

Well, that depends on the platform you used e.g. wordpress, drupal, etc, as they all have their specific vulnerabilities. Then there is the database you use and what vulnerabilities it has. Those are vulnerabilities you can't do much about yourself apart from applying patches/fixes as they become available and keeping up to date on latest versions.
From a coding point of view you should have parameterised queries to the database, be parsing all user input regardless of the source and making sure (or at least trying) that cross-site scripting attacks are blocked.
You should enforce strong password polices for all users, particularly admin and development people that access the server directly.
And then you've got hardware to worry about, denial of service attacks, etc.
It's not easy and is a pretty big field in its own right.

hericles 289 Master Poster Featured Poster

You have a few options. The best, short of an actual mac, is to run a virtual mac OS X on your PC. I haven't done this myself and some people have noted that it tends to be a performance killer. You'd need a high end machine to get good results.
There are a few frameworks out there now that compile to iOS such as Mono, Xamarin (for visual studio), phonegap. I haven't used these either as I went and bought a cheap, second hand mac laptop when I needed to do iOS programming but they seem to get a lot of usage so they must be good for something.
If you eventually think of buying a cheap laptop make sure you get one with good hardware. Apple are releasing new iOS versions and SDKs pretty frequently so an older Mac machine can become redundant pretty quickly.

hericles 289 Master Poster Featured Poster

"Data could not be updated. Please try again" sounds like it is an error message coming from your own code. If it is being generated via a try/catch block then catch the actual error text of the exception and have a look at that. It will provide real information on why it is failing.

hericles 289 Master Poster Featured Poster

Can we have some extra detail please? Your post doesn't make sense.

hericles 289 Master Poster Featured Poster

If you intend to do it with .Net then you would need to post back the button click to the server side code. There you would instantiate a class variable or session variable that held the current count and on each postback when the button was clicked you would increment the variable by.
To display it you just pass the current count variable to whatever control you want to use to display the result, a listview in your case.

hericles 289 Master Poster Featured Poster

Its similat to ternary statements you'll see in other languages.
If the statement is true use the first value, if its false use the second.
So, in the example of the first IF above if f.providerId = $userId then f.requestId is supplied to the ON statement, otherwise f.providerId is used.

hericles 289 Master Poster Featured Poster

More info please. Are you trying to do this on the same page as the drop down selection is made or do you want to access the selected value at another point in the process e.g. in the cart?
And what page are you referring to? product view, checkout, registration?

hericles 289 Master Poster Featured Poster

Very tricky question with, going by the US courts, a leaning toward it being a bad idea.
But, it all depends on what you are scraping (facts vs data), how you are scraping it (have accessed a private page) and how much harm you are doing to the affected party and how you intend to use.
Reselling the information or using it in some competitive way against the owner of the data would almost certainly get you in trouble.
Writing a screen scraper just to prove you can... no real harm in that. You can read the web page after all.
N.b. I'm have no legal background or qualifications, just so we're clear.

hericles 289 Master Poster Featured Poster

not being familar with bxSlider myself I would suggest looking at the console log in the browser to see if any javascript errors are being generated.

hericles 289 Master Poster Featured Poster

And I say kudos to your achievement. Persistence is the key indeed.
But, and I don't mean to belittle what you've done, true knowledge comes when you know WHY moving that line of code made the difference.
Have you solved that particular question?

hericles 289 Master Poster Featured Poster

At line 28 you have a closing } that doesn't look like it needs to be there.
Same for line 39. You have two closing braces there. The second one is matched to anything. Which would explain the enum warning at the compiler is using that brace to close of your class or method, leaving everything after it hanging.

hericles 289 Master Poster Featured Poster

If your server IP is static and accessible to the outside world the connection string should work if it is set up correctly. You will need to include the port number that the server is on in most cases.
What is the exact error the user gets and what does the connection string look like?

hericles 289 Master Poster Featured Poster

There must be more code. Unless your class only contains that one line...
If you are unwilling to post up the rest of the code there is very little we can do to help you. Although I can say in java you will get that error if your if statement is malformed. Is there an else or if else that also makes up part of that complete if statement?

hericles 289 Master Poster Featured Poster

I think there must be something else wrong beyond that small snippet. Can you post up the whole if statement?

hericles 289 Master Poster Featured Poster

Then ask a colleague at ... <cough> NASA.

hericles 289 Master Poster Featured Poster

What is the link you are trying to pass? I haven't used the FB SDK for awhile but I think I remember the link had to be acessible i.e. not behind a firewall or on your local machine for FB to accept it.
Apart from that, is the format of the link correct? No errors?

hericles 289 Master Poster Featured Poster

If you want quick, seamless approach that the user is completely unaware of, use jQuery and put a onclick on the image. When it is clicked make an AJAX call to a php script, passing the name of the image, and let the script do the database bit.
When it completes and returns success or failure you can inform the user on the page or not, whatever works with how you want the process to work.

hericles 289 Master Poster Featured Poster

I should add that once you have your stored procedure written correctly, you call it and add the required parameters to the command object as you normally would to pass parameters for a normal SQL command.

hericles 289 Master Poster Featured Poster

This tutorial should help you: MySQL store procedures with parameters

hericles 289 Master Poster Featured Poster

I don't know anything about the set up of abyss but if you look in the root folder of the abyss server there should be a log folder which will have one or error logs in it.

hericles 289 Master Poster Featured Poster

Are you storing the logged in user's user name anywhere? In a session variable for instance?
Withoutknowing what you are doing to persist the user name after a successful login there isn't much advice we can give.
For example, User.Identity.Name doesn't get populated with a value without you making it so.

hericles 289 Master Poster Featured Poster

Do you know what browser they were using? I highly doubt it is the operating system that doesn't handle the javascript correctly. I'm going to guess they were using Safari.
You could have tried jQuery instead too. That would have saved doing every div manually as you have done as you could have used jQuery selectors for the same effect.

hericles 289 Master Poster Featured Poster

That code will append the second image inside the first. I doubt that is really what you are trying to achieve.
If you look at the page source you'll see this:

<img data-name="Steve" id='SteveID' class="profile">
   <img data-name="Jhon" id="JhonId" class="profile"/>
</image>

If you want to place the profile image near the first image you will want to append it to the element, presumably a div, that contains the first image.

hericles 289 Master Poster Featured Poster

Sounds like homework. Just think of things you can use to get data into a computer and things you can use to get data out. Hint: a keyboard and a screen.

hericles 289 Master Poster Featured Poster

After you've started it,if it still doesn't work, look for an error log file in the server directory. It'll tell you what went wrong.

hericles 289 Master Poster Featured Poster

Response.write outputs the value to the HTTP stream. It is a different action entirely than reading a value so it can be stored in a variable. So your code is looking for something to end this command:
Set storeEmail =
Before it moves onto the Response.Write.
This should be all you need.
Set storeEmail = bs("email_addr);

hericles 289 Master Poster Featured Poster

If you need to know if the row exists you should query the database for that row only.
SELECT COUNT(display_name) FROM tbl_types WHERE display_name = '$display_name'

Now you're get a zero or 1 which is easy to check so you know if you need to update or insert.

hericles 289 Master Poster Featured Poster

You'd be better off finding a free/cheap inventory management system or accounting package. Then all of the creation work has already been done for you by people in the business. Plus you'll gain access to all of the features, reporting and the like, that you're database won't have.

hericles 289 Master Poster Featured Poster

You use a dataAdapter to fill a dataTable (or a dataSet) with the result of the query.
In your case you would end up with a table with 4 rows, each one holding the state of one of the buttons.
You then do a foreach over the dataTable getting the relevant cell and checking its value.
I don't do too mcuh VB.Net stuff these days so this will be just pseudo code but it should help

Dim da as DataAdapter(command object goes here)
Dim dt as DataTable
// set command text for command object
da.Fill(dt)  // get your data
foreach(DataRow row as dt.Rows) 
    // locate cell that holds value you need and enable/disable button
hericles 289 Master Poster Featured Poster

Well, the host would usually refer to the connecting URL. Is there a config file somewhere that has a default host specified? That or the host is somehow incorrect or badly formatted.

hericles 289 Master Poster Featured Poster

What do you mean by arrangement? Are you asking about hardware specifications? If it is specs, then any working computer with a modern OS will do really. Faster CPU and more memory are nice but not essential for learning to program.

hericles 289 Master Poster Featured Poster

What browser are you using? They have differing specs on how long a URL they can process. I maybe out of date but I believe IE can only take 2048 (or there abouts). Other browsers maybe able to handle longer lengths and the http spec doesn't mention a maximum length.
Also, there simply be an error in your code that is causing the null. Have you removed that as a possiblity?

hericles 289 Master Poster Featured Poster

You're outputting two different values than the ones you're checking for.
Your if loop looks at maxwidth and maxheight but your message outputs maxwidth_btn and maxheight_btn.
So from that you can't actually be sure that the height/width fails the condition. Unless you know that maxwidth and maxwidth_btn are definitely the same value?
I'm pretty sure if you output maxwidth and maxheight one of those will be passing the IF condition.

hericles 289 Master Poster Featured Poster

Define "not showing properly" please. what do you expect to see?

hericles 289 Master Poster Featured Poster

I don't think this is enough code to fully explain your problem.
Is the second drop down being populated based on the value of the product drop down? If yes, and that bit is working correctly, then I don't see how selecting a handbag size after selecting 'shoes' would be possible.
It seems to me that worrying about handling that error is a mistake. You should be examining why that error is even possible to get to in the first place.

You say that the script is 'still updating the database' but with the limited info you've given I don't understand what that means. If a user selects a product and then a size the database is updated automatically? Or is this further through the process?

hericles 289 Master Poster Featured Poster

Really depends on what you what to write in/work with.
I'm a software developer and I do nothing in C/C++ or Java.

I work with PHP, .Net, objective C (iOS) and web stuff like angularJS.
Do you need to be really good? Well, it can't hurt...

hericles 289 Master Poster Featured Poster

Free IT ebooks at it-ebooks.

hericles 289 Master Poster Featured Poster

You have absolute positioning set for .sidebox. That means it ignores its parent elements and uses the top and left coordinates supplied in you CSS.