Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I went to Disney World for Thanksgiving break, and all those germs got to me, and I now have bronchitis. On top of it, my laptop (the only computer I have here in California) suffered from battery swell, and needs to have its battery replaced, which means that the Apple store is holding onto it for 5 days. I’m now sick and without a computer for the upcoming week.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

As rproffitt says, you should start your own question by clicking Contribute instead of hijacking this question about eCommerce websites with PHP.

However, to very quickly answer your question, you can get more insight as to why your URLs are rated the way they are at https://developers.google.com/speed/pagespeed/insights/

For deeper discussion as to why this is the case, and what you can do to fix it, please start your own separate discussion topic.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

If you’re having performance issues, use session_write_close() as close as possible to the top of each script. (As soon as you finish using session data)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Only about 5 minutes. I ended up not going back to investigate yesterday because I went out after my hair appointment and didn't get home until late.

rproffitt commented: Thank you. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

A missing set of parentheses was to blame. Bug fixed.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

OK great. I'm considering this issue completely resolved unless someone brings it to my attention again.

rproffitt commented: Tempting fate now. And if it fails I think I know what you want next time. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Is anyone still encountering the problem of posts not going through?

rproffitt commented: So far so good here. Haven't lost a post shortly after the last time when we had a discussion about it. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Thanks for letting me know. I think, if memory serves, that the recommended items picks from items you have access to (and, as a mod, you have access to deleted items). However, seeing deleted items is not a good experience for anyone, so I’ll have that fixed.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What about now that T-mobile and Sprint are merging? From my understanding, the T-mobile CEO will be stepping down after the merger.

rproffitt commented: Yoda said “Difficult to see. Always in motion is the future..” I'll wait and see. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

To rproffitt's point, are you interested in being a web designer or a web developer? (Although I think he may be a little incorrect in terms of the function of a web designer in 2019 / 2020).

Designers focus on the aesthetics of the website. They plan out the user experience (UX) and user interface (UI). They focus on color theory, navigation, user behavior, conversion rates, and how the overall look and feel of a website, and each of its pages, work together to create the best experience for the end-user, and most profitable experience for the website.

Graphic designers don't really exist much nowadays in terms of the web, where so much can be done with CSS and HTML5 nowadays. However, there's definitely still a huge need for graphic design for ad campaigns, magazines, and of course logos and building out the occassional infographic.

Web developers write the actual front-end and back-end code that goes into creating a website. Front-end developers focus on HTML5, CSS, and Javascript, while back-end developers focus on SQL and PHP, Python, or whatever their language of choice is.

Systems administrators are those who maintain the actual web servers, database servers, caching servers, file servers, etc. Their job is to do things like set up and configure the MySQL server, Apache, nginx, load balancer, CDN, etc.

Webmasters are people who are tasked to create or maintain websites for small businesses, usually by using existing tools such as Wix, blogging platforms such as Wordpress, etc. They …

rproffitt commented: Thanks for this. My buddy did it all but does not consider himself to be a webmaster as he tends to start with deploying the server hardware and build +15
crolic commented: Thank you! Now i see that i'd like to be a front-end developer +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Can you please post your code here in the forums using our editor? It’s hard to read the blurry text in the screenshot. Thanks!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yes, breadcrumbs are important for Google to understand your site's navigation. They may also display your breadcrumbs within their SERPs. Use schema.org breadcrumb markup.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Per our private convo, you're a sponsor now. To avoid this from happening in the future, please click the Donate button while you're logged in so the transaction can be associated with your member profile.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

There’s thousands of them. Focus first on EAT. Everything else will follow.

https://www.searchenginejournal.com/improve-google-eat-score/270711/

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Absolutely it will benefit! Anything you can do to get Google to understand your content better is great. SEO is a combination of doing lots of different things. Just because you fall short in one place right now doesn’t mean you shouldn’t do what you can with other things.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Two years later and I'm still struggling with this.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Why are you making the assumption that the OP is taking about programmers / developers? Of course they need solid blocks of time to think clearly and make progress without being interrupted. But working as a digital marketer is entirely different.

rproffitt commented: It was based on what I saw at the Sarmad's TaskQue article and pages at TaskQue. Maybe it was just spam after all. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yes you are right. I want to open two browser tabs off of one click. Each tabs will be opening different sessions.

This could be done with simple Javascript. Simply use window.open("https://www.new-url.com"); You can trigger it when a link is clicked. Nothing to do with PHP or CodeIgniter. Also, both browser tabs will use the same CodeIgniter session.

All that being said, I agree with rproffitt in that it's a very poor user experience and therefore strongly not recommended.

rproffitt commented: A javascript approach is more likely to work. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Thank you so much for donating!! Unfortunately, your user account is not reflected as having done so. Would you be able to send me a private message from this page with your PayPal email address so I can see what happened to your donation?

Also, what page did you donate from? Did you use the button at https://www.daniweb.com/donate/index ??

holistictech55 commented: yes exactly the same i was thinking about this issue. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

DaniWeb was written in Codeigniter, and when posting to the forums, we use database transactions that look like this:

$this->db->trans_start();

... insert into the posts table ...
... update the member's post count ...
... update the tags table ...
etc

$this->db->trans_complete();

On occassion, the error log will show for a particular query within the transaction: Query error: Deadlock found when trying to get lock; try restarting transaction - Invalid query

When that happens, the entire transaction is rolled back. However, this is not ideal because when someone attempts to make a post, we don't want it to completely fail just because the member's table happened to have been in use at the time.

That being said ... how do I go about restarting the transaction?? e.g. something such as:

if ($this->CI->db->trans_status() === false)
{
    // Code to restart the transaction
}

Is there a better way to be doing it? Should I be manually locking tables?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You can’t comment on your own posts, if this is what you’re referring to. I am unable to reproduce what you’re saying.

rproffitt commented: That's what I'm seeing. As in, works as intended and IMO correctly. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

As of today, DaniWeb offers a completely ad-free experience to sponsors!! What do you think? Is it enough to sway you to donate $5/mo for all the benefits you get?

macfan commented: Also no. Nothing will make me pay. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Then why don't you use AMP on the sites in your signature?

rproffitt commented: Inquiring minds. +15
gentlemedia commented: Because he's here on DW only just to get those links out +7
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

If you click the Comment button within a post, it is whatever post that you pressed the comment button from within that gets quoted. Your comment appears below the post. It doesn't matter if the post includes a quote or not, the behavior is the same.

rproffitt commented: Comment to Dani's reply. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm sorry, you need to explain what you mean by multiple user interfaces. Do you mean open two browser tabs off of one click?

Priyanka25 commented: Yes you are right. I want to open two browser tabs off of one click. Each tabs will be opening different sessions. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm confused by your question. Do you mean that Google is indexing a page on your site that doesn't exist? If so, as long as your server is correctly set to return an HTTP 404 error, Google will deindex the page.

Or do you mean that you have a webpage that is linking to another webpage that is broken? How can we help you in removing the link?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Creating a drop down can be achieved just with HTML. I’m confused what you need PHP for, unless I’m misunderstanding you? Can you show us the code you have so far so I can see exactly what you’re trying to do?

lanny_1 commented: <div id="artdrop"> <form> <select id="menu" onchange="navigate();"> <option value="#">Select category...</option> <?php $db = mysqli_connect("localho +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

We found the crate necessary when traveling to and from camp. It is a 7-8 hour drive and having a dog wandering around the van is a safety issue.

Yes!! It's very important that the dog be restrained in a car. Sadie sits in her booster seat so she can see out the window, and is additionally seatbelted in via one of those seatbelt accessories for dogs that connects from her harness directly into the car's seatbelt latch. It's also very important that dogs sit in the backseat, because otherwise they can be thrown against the windshield in the case of a collission.

Our current dog is more laid back and can be left loose in the van.

Please, please, please don't do this. Your toddler might be well behaved as well, but that doesn't mean that they shouldn't be seatbelted in. A perfectly content laying dog is not protected in case of an accident. At the very least, please use a seatbelt tether like Sadie has which connects from her harness directly into the car's seatbelt latch. It will prevent your dog from being thrown up against any glass windows in case of an accident. (Sadie uses one of those, in addition to a booster seat so she has a designated place and can see out the window).

We didn't crate the dogs unnecessarily. For example, our second dog (Irish pup) slept in the crate at night. Once the dogs were in a …

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Crate training is a good idea for every dog. The dog learns that the crate is their safe space. It should not be a place where you put your dog as punishment. If you ever need to travel and you are able to take the crate along (our crate is collapsible), the dog will still have a familiar place to sleep.

We can agree to disagree on this one, or we can have a whole conversation just like the religious uniforms debate. I'm of the minority opinion (minority in America, at least) that crate training is not humane. Crate training is actually illegal and felony dog abuse in more "enlightened" socities such as Sweeden. Crate training began as an American phenomenon to make it easier on the humans who want to leave their dog unattended for prolonged periods of time without the dog endangering themselves or destroying their home. However, it's beneficial to the humans, but not to the dogs. I'm of the opinion that it's the easy way out. People justify it by saying that dogs love cozy, confined cave-like spaces and it makes them feel safe, but some animal behaviorists say it's nothing more than Stockholm syndrome -- conditioning your dog to love its prison. I have yet to find a study that says that confining your dog to a crate for hours at a time is actually beneficial to their psyche.

I'm of the belief that it's great to give your dog comfy, cave-like spaces. …

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

DaniWeb, itself, is written in CodeIgniter so I have a lot of experience with the platform. However, I'm very confused by what it is you're trying to do.

Firstly, the set_userdata() method does not create a new session. Just one session exists. What it does is add custom data to the existing cookied session.

Why are you using ob_start()?

vPrezn commented: How can i use another custom session in php codeigniter? +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

A vote for Magento here.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Firstly, the link to searchresult.php is a blank page, which most likely means a PHP fatal error of some sort.

Try doing this instead:

  jQuery.ajax({
     type: "POST",
     url: "index.php",
     data: { id: id },
     success: function() {
       console.log(myData);  
    }
  }); 

I just want to double check that your console does show the correct value for id?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

There are over 300 Google algorithms released every year, meaning there's an algorithm change almost every day. Of those, there are about two a month that are impactful enough to be announced by Google to the SEO community. The SEO community then scurries to make changes. Rinse and repeat.

rproffitt commented: This is an great summation of what we all suspected. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I recently got burned by this as well.

It sounds like a major flaw considering that the product is specificially designed to be a remote access tool.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The article that rproffitt linked to on SEMrush seems to indicate that the only use case for nofollow links are paid ads. That's simply not true. Nofollow was Google's recommended method anytime you were linking to content that you could not vouch for. While paid ads definitely fell under that category, so did links within user generated content, such as forums. All of the links within member posts have always been nofollow'ed.

As pointed out in that article, lots and lots of links on the web have been nofollow'ed, and Google still looked at them, sometimes.

Well, now it's official. Google has announced last month that the nofollow attribute will now be seen only as a hint. Of course, many SEOs have suspected this for quite some time, but it's now not only officially on the record, but Google is actually encouraging two additional link attributes to replace nofollow as well. In an effort to better understand a website's motives for using nofollow, they are adding two additional link attributes, ugc for user-generated content, and sponsored for paid ads. The original nofollow is now a catchall to be used when you don't necessarily vouch for or trust the content you're linking to, but it doesn't fall into either of the other two categories. It's now at Google's discretion whether and to what extent they will count that as a backlink within their rankings.

More information at https://searchengineland.com/google-to-treat-nofollow-link-attribute-as-a-hint-after-march-1-2020-321664

rproffitt commented: In 30 days everyone is out of date on almost any Google subject? +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Back then, computer science had a lot more emphasis on math than today.

Computer science, as a degree, still has a huge of emphasis on math. However, when utilizing that degree in the workforce, the chance that you go into a high level field is wayyyy higher than the chance of going into a low level field. Especially as more and more stuff gets abstracted away, and with web and mobile apps and all being as popular as they are.

Y The commented: Great Post! It’s very useful for me and thanks for sharing. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Wordpress might be good enough for the hobbiest or small business, but bigger and corporate websites will always need something custom. In fact, I can argue that Wordpress makes it easy for anyone to get something going out of the box, and so in order for a web app to become popular, it needs to be constantly innovative and doing something that no one else is.

Yes, Wordpress can definitely hurt your career if you are a novice web developer who typically creates simple websites for small businesses, that Wordpress can easily do. But, if that's the case, you can leverage Wordpress' popularity by writing plug-ins and charging for them.

But as long as the Internet exists in its current form, web developers are going to be in demand.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Try setting data as an array, as so:

    $.ajax({
        type: 'POST',
        url: 'index.php',
        data: { lprice: lprice },
        dataType: 'text',       
    });

Try using console.log(lprice) right efore the ajax request to print out the value of lprice and make sure that lprice is being accurately retrieved.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

My boyfriend got me an Oculus Quest as an early birthday gift, and while I love it, he loves it wayyyyy more. Does anyone have any game recommendations? Unfortunately, the Oculus Quest does not share a marketplace with the Oculus Rift, and since the Quest has only been out since the summer, there isn't nearly as big of a directory yet compared to the Rift which has been growing its marketplace for years.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I certainly don't associate the word hacker with anything illegal or nefarious. To me, a hacker is someone who doesn't just follow the manual but is an out-of-the-box thinker who is capable of using things (could be technologies, products, etc.) in non-traditional, creative ways to his or her benefit. In the realm of computer hacking, it's simply being creative to get into functionality not designed to be easily accessible, or designed to be accessible at all, to the end-user. You can hack your registry, for heaven's sake. MacGyver was a hacker. There's even a TV show called Hack My Life which is a how-to series about various life hacks. My mom watches the show, which airs on the same network as Impractical Jokers and COPS, meaning their target audience are non-technical baby boomers. If that doesn't mean the word has made it mainstream, I don't know what does.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What are your favorite hobbies on the computer outside of work and DaniWeb, of course? Personally, I'm a Quora addict.

Y The commented: A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Any dog parents out there? My sheltie just turned 6 months. She's suuuuuch a smart breed that I literally need to keep her mind occupied every moment throughout the day or she gets bored and destructive. She gets all her meals in the form of puzzles.

Today has been especially difficult because she has been non-stop barking every moment unless I'm actively training her, playing with her, entertaining her, or feeding her. The moment I walk back over to the computer and try to get back to work, she's back at it.

Anyone else here work from home while dealing with pets, kids, etc?

macfan commented: "entertaining her" seriously? +0
Jen Larosa commented: Strolling my dogs every morning, and catch up with other fur parent on our neighborhood, and let our dogs play. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

My guess would be Instagram.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Perhaps try reddit? My boyfriend browses reddit daily and all he seems to do is scroll through memes. They don't like blatant ads though, depending on the subreddit, so don't spam. Facebook and instagram seem to me to be practically designed to promote a meme's site.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

To AMP or not to AMP, that is the question.

For those who have decided to implement AMP (Wordpress users, I'm looking at you!), have you noticed a difference since doing so? For those of you who have chosen not to, what are your reasons?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Google Analytics is a Google product that lets you add a snippet of Javascript to every page of your site, and it tracks visitors, and information about those visitors. You can find out lots of interesting insights about your traffic, track conversions, marketing campaigns, etc.

Google Search Console, formerly known as Google Webmaster Tools, is a Google product targeted to SEOs. It gives you insight into how Google ranks your site and strives to give you actionable insights that you can use to improve your Google ranking.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Why not just focus entirely on your food business and partner with Instacart to make your products easily accessible via online shopping?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm going to write no because you added "low authority." To me this means your goal is not about Web 2.0 at all as defined at https://en.wikipedia.org/wiki/Web_2.0

This is the SEO forum. As a result, by "low authority" he means does Google consider a specific page an authority based on its UI/UX (e.g. is it Web 2.0 or not).

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've noticed that really strong articles with an overly simplistic UI tend to be linked to the most, and as a result, carry the most authority.