Dani 1,745

Those are notifications about incoming instant messages, hence new message notifications, as opposed to forum post notifications. Post notifications are always instant.

Dani 1,745

I think it's realistic for someone of any age to attempt a new career in programming. My criticism is mainly of my experience with people who have come out of coding bootcamps.

6 months of time is not realistic to really grasp all but the very surface of programming, and that's assuming you're putting in 12+ hour days building up your portfolio. Check out this article I just stumbled across: https://techbeacon.com/app-dev-testing/bootcamps-wont-make-you-coder-heres-what-will

Dani 1,745

I'm curious as to why you think your age stands in the way as a data analyst, but it won't as a programmer?

I hate to say it, but I think that ageism is very prevalent in web development and mobile apps, which are where the focus of coding bootcamps are. Web apps today put a very heavy emphasis on catering to millennials, and so businesses want to hire people who "get" their target demographic.

Dani 1,745

If you have previous experience with databases, I don't see why it would make sense to shift completely away from that and start at ground zero as a complete newbie. Every website today is only as strong as its database, and data analytics is a huge industry, especially with machine learning powered by data mining, etc. According to Glassdoor, data analyst salaries are about $100K and database engineers average $150K/year around San Jose, CA. (Albeit the cost of housing is tremendous here as well.)

Dani 1,745

1) Is it realistic to even consider this as a career for the next 10 years for someone my age? Assuming it is,

Programming is a huge industry. Everything from writing hardware drivers to designing games for gaming consoles to building a website to on-page search engine optimization to front-end UI. You can get a full-time job in Silicon Valley or you can be an independent consultant working out of your home office or anything in between. They all require different sets of skills, have huge discrepancies in salaries, and some might be more suited to you than others, depending on your current skillset and interests.

2) Are there some coding schools that you can comfortably recommend that are accepted by the IT industry?

A lot of people love coding schools but I am one of those people who is not quite sold. I think they're great to teaching you how to build a snazzy website for a small business or a simple mobile app in a very short amount of time. That's what it's all about ... making you hireable as quickly and efficiently as possible. However, what they don't tell you is that without the background of a computer science degree, you will lack all of the mathematical and analytical experience required to focus on big data sets (e.g. working with billions of records), fine-tuning performance, etc. It's my personal experience that coding schools teach you what's necessary to land your first small-time consulting gig, and ...

rproffitt commented: That's a quality reply. Great example. +0
Dani 1,745

So it looks like you are storing passwords in plain text in the database. NEVER. EVER. DO. THIS. It is incredibly insecure. Please look into PHP's password_hash() function.

Dani 1,745

That’s the thing. We need to see your register and login code in order to give you the code for password change.

Otherwise, without it, the best we can offer us the pseudo code I provided in my first reply above.

Dani 1,745

So I’m confused. You’re asking for help writing the PHP code that can be used to do a lost password reset, but you don’t have code for a signup or login?

Dani 1,745

OK, so you're connecting to MySQL via PDO. I'm personally not familiar with PDO. Is there a reason you're not using something like MySQLi?

It seems as if you don't have very much experience at all with web development. Did you write this PHP yourself? Where is your PHP code to log in? Your database schema? Is this part of a larger PHP application?

Hasan_10 commented: . +0
Dani 1,745

You need to provide some more information in order for us to be able to help you. I see here you are giving us an HTML form that asks a user for an old password, and to enter a new password twice. I understand what you want to do is update the password in the database, when the form is submitted. However, you are giving no insight to what your PHP application code currently looks like, what database you're using, how passwords are stored in the database, etc.

Basically the steps that would be involved would be:

  • Retrieve the old password from the form
  • Check to see if the new password and repeat new password fields are the same
  • If they aren't a match, show an error that the passwords are not the same
  • If they are a match, compare the old password to the encrypted password for the user in the database
  • If they aren't a match, show an error that the old password is incorrect
  • If they are a match, encrypt the new password and overwrite the encrypted password field in the database

Now, how that algorithm actually gets translated into PHP code has a lot to do with what PHP framework (if any) you're using, what database you're using, what library you're using to connect to the database, the database schema, etc.

Dani 1,745

This should be rather simple to do with jQuery, unless I'm misunderstanding what you're asking. First retrieve how many pixels from the top of the webpage the attribute you want to scroll to is. Here, we select the first element that has data-attr=foo and then calculate its position in the DOM.

var position = $('[data-attr=foo]').first().offset().top;

Now, we can scroll to that position.

$('html, body').animate({
    scrollTop: position
});
Dani 1,745

Bostjan attempted to upload these files but it didn't work. For the sake of testing site functionality, here they are.

Dani 1,745

What is the specific MySQL statement you're trying to execute? What if you just try SELECT * FROM category on its own?

Dani 1,745

I've never used Woocommerce before so I probably can't assist much, but if you attach a screenshot of what the admin page looks like, maybe I could help figure something out?

Dani 1,745

Instead of echo, try using var_dump($statement). This will spit out the mysqli_stmt object.

You got nothing for $error because you set $this->error in the catch block, which is different than $error.

Dani 1,745

Hi,

Unfortunately, unless I'm misunderstanding you, it's really hard to be able to help you without fully understanding what's behind your execute() and get_result() functions.

The error is basically saying that $navigation is NULL and so you aren't able to call the fetch_assoc() method on it. $navigation is most likely NULL because the MySQL query syntax was bad (syntax error, etc.) and therefore get_result() returned NULL on error.

Dani 1,745

I suggest that you type in the post, and then click on where it says Preview. It should highlight where the error line is.

Dani 1,745

You probably have some whitespace somewhere else, that is not a code block. Ensure that the only lines in your message that are indented with spaces or tab are code, and they are preceded and followed by a blank line.

Dani 1,745

Because a lot of bots and spam traps tend to use hotmail as throwaway email addresses, so we have a lot of Hotmail emails in our database that are bad. We try to clean it to the very best of our ability, but Hotmail doesn’t like us very much.

Dani 1,745

It looks actually as if Hotmail and MSN have been actively refusing email that we send for the past few weeks. Ugh!

Dani 1,745

We have had a problem with Hotmail delaying email we send out because it gets flagged as fraud. It should arrive in about 24 hours. Otherwise, please use a non-Hotmail email. Sorry for the inconvenience.

Dani 1,745

This should be fixed now. Thanks for catching this!!

Dani 1,745

But you can get to page 1 just fine?

Can you tell me the specific URL it sends you to when you click on Continue to Step 2?

Dani 1,745

Really?!?! That's what happens when you click on page 2?

Dani 1,745

These are the goals of the user that complement your own goals. For example, if you have specified in your profile that you're looking to mentor people, and this person is looking for mentorship, then it will show up as a complementary goal.

You can specify your goals on Page 2 of the Business Networking settings page. Go https://www.daniweb.com/connect/profile/update and remember to click Continue to Step 2 at the bottom of the form.

John_165 commented: thanks Dani +0
Dani 1,745

And how to control what is on that homepage? If there is going to be no member control of the homepage, this reminds me of Microsoft's Windows Mobile homepage fiasco. They forbid the user from changing the Windows Mobile homepage.

An algorithm controls what is on the homepage. It's based on your usage across the site, and is similar to your Facebook feed, Reddit feed, Quora feed, etc.

Dani 1,745

Does the homepage seem a little bit better now? It's still a work in progress.

Dani 1,745

You clicked on an endorsement suggestion button in the email to endorse diafol. Unfortunately, diafol has deleted his membership. I fixed the bug in which it will no longer suggest deleted members in the future.

Dani 1,745

There’s a max limit on image dimensions that can be uploaded. The left one is over the limit but the right one should be fine. I’m not sure why you’re not seeing the error message.

Dani 1,745

Yeah, the homepage algorithm seems to work really well for people who visit any amount less frequently than once per week (which is 99.9999999% of traffic). Once you start visiting more than once a week, we simply don't have enough new content to keep up. I agree DaniWeb needs to make more sense for regulars, so it's something I'll work on once I return from my trip.