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

Pretty shill of a question …

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

My buddy is telling me his search results change from PC with Chrome to iOS and Safari. Safari is an Apple thing so filtering can happen.

This can happen because he may be logged into his Google account on one device but not another. Google results are personalized, so if you’re logged in, their skewed based on your personal search history. Are cookies cleared across both devices?

Another reason this can happen is because results take geolocation into consideration. His iOS device may be using his mobile data plan, which resolves to a different IP (and slightly different location) than his home computer. For example, when I was living in NYC, my cable modem IP resolved to somewhere in Jersey, but if course my cell was much more accurate at pinpointing my location based on cell towers. If I were to do a Google search, for example, for “hotels”, I would get a different set of results depending upon where I am querying from. It would default to showing hotels near my current location, or at least what it thought my current location was.

Regardless, if a website has been delisted on mobile but not desktop, it’s almost always because it’s not mobile friendly. Google Search Console should provide actionable feedback.

rproffitt commented: While I understand this, so many don't or rather "donut." +16
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

No. Double quotes allow you to include variables. Single quotes are literal strings and don’t recognize variables.

They are encasing the entire SQL query in double quotes so the variables will be parsed. The single quotes are used for the purpose of wrapping the string to be matched in the database column.

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

I would think c++, but I guess it depends what type of game and for what platform?

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

Is there something about this that isn’t working that you need help with, or are you just sharing your code?

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

In the context of SEO (as this is the SEO forum), it’s absolutely always referred to as CLS. I actually had to look up what it stands for to give my explanation. One of those abbreviations that ends up becoming the primary word while the original spelled out version becomes obscure.

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

It's been my experience that the best digital marketing course is to start off with your own small blog and learn from experimenting with what works and what doesn't work for you.

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

Please explain what you mean by providing you with advice. Do you have VB.NET installed on your computer? Did you rprofessor show you how to use dialog boxes? Did you learn about opening txt files? What part of the assignment has you stumped?

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

What isn't working as intended? I see that you are using javascript to calculate the sum if you add a new service, or if you click the remove button. Are those not working as expected? The initial sum should just be set via PHP based on what exists in the database at the start of the page loading.

yadao200011 commented: Actually the table itself, was working. I can add and remove services. But, the "function calculate Sum()" is not working. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I see that basically what I want is called tooltip but on w3c school on the link it's called popup..

Tooltips typically automatically show when hovering over an element and then autohide when the mouse cursor moves away. Popups tend to be a tiny bit more elaborately styled and can be triggered by click or hover.

That being said, I sincerely apologize. I'm confused what you're tryng to do. There has to be some heuristic you want to trigger on. You can trigger on a specific ID. You can trigger on a specific class. If you do something such as document.getElementsByClassName("example"); then it will trigger on elements that have class="foo bar example" as well as class="foo example" as well as class="example". In other words, it's smart enough to know that all three elements have the class name example, some with additional class names as well.

Does that answer your question?

Mr.M commented: This seems to be right but my issue was how to get `example` from the className, so with the solution I got I saw that I can add my own class. +7
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Backlinks, a well structured navigation system, a clean UI/UX, and lots of original content articles that are updated frequently

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

Hi there and welcome to DaniWeb!!

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

Sorry, I’m already in bed for the evening so I can’t really type out a long response from my phone. I’ll answer more tomorrow.

PHP is a server side scripting language in which you can write code that spits out HTML. PHP scripts can include both php code encased in php tags as well as html. Right now, your php script is all html with no php code at all.

If you have no experience at all with php, I suggest that you search the web for an intro to php tutorial and check it out. What you’re asking to do requires basic knowledge of writing php code.

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

Your payment.php file just includes an HTML form for the user to see. It doesn't actually include any PHP code. You need to write PHP code to connect to the database using MySQLi.

Nicole_17 commented: I read that I could convert my html to a php? I converted it and everything works but I’m not sure how to connect the two. I honestly don’t have any +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Check out the https://www.webhostingtalk.com forums. I used to be an active member there a lifetime ago.

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

I couldn't possibly imagine coding on a phone. It's way too cumbersome to type out symbols as frequently as I'd need to, or to indent code. However, I used to be quite competent at writing out syntactically correct code on a whiteboard while in college.

If you need to write code on the go, I would recommend connecting a portable bluetooth keyboard to a tablet such as an iPad.

jwenting commented: or good old fashioned pen and paper +16
rproffitt commented: First code for me was on paper. Later it was punch cards and paper tape. +16
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This just seems like a homework assignment posted with no context. Can you show us what you have so far and what you're stuck on, what isn't working, or where you need help?

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

Shouldn't you be answering this question rather than asking?

SEO isn't the kind of industry that you can pick up a book or read authoritative text on to learn. It's constantly changing, constantly evolving, and the techniques that make up the industry are all just trial and error from agency owners testing them out (agencies are in the best position because they have a big assortment of websites to see what works and what doesn't) and then sharing them in forums with other agency owners.

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

Don't we all want to know!

The easy way is to pick a very non-competitive keyword. If you're the only one with a website about red and blue striped widgets used for cooking, then it should be pretty easy to rank #1 for the keyword red and blue striped widgets for chefs.

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

Sorry, I don't. What is your Instagram account about? Is it meant to promote a different business, or is it a bunch of cat photos? Cat instagrams for the win!

nextsmm commented: To promote a business +0
jwenting commented: pr0n always brings in the punters... But it's kinda risky posting things that are too explicit on instagram, so best be careful +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I definitely like the name Office Surgery Centers with the domain officesurgery.com

Good luck!

nextsmm commented: I'm agree with you. In my idea Office Surgery is better +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It only takes one wacky video to go viral ;)

What is your channel about?

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

Don't use Constant Contact. Try Mailchimp, HubSpot, or SendPulse.

How big is your list?

rproffitt commented: Thanks Dani. My brother's insurance is using CC without issue. +16
nextsmm commented: About one thousand Email address +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The checkout page is greyed out if you are on your own Paypal checkout page. I've never seen it in any other scenario.

What is the difference between the Paypal URL that regular customers see vs the one new customers see? Can you please provide a link to the Paypal checkout URL for new customers?

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

This file is not standalone. It's not like we can just try executing it on our end and seeing if it does what you want it to do. It's a single file as part of a much larger library / framework, and therefore we can't just look at this file on its own to guarantee it does what it's supposed to, or has no bugs.

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

I have to ask why do this. I've been watching users for years and they don't care what the URL is if they are shopping.

This is considered one of the most important things to do for both SEO as well as usability reasons. I could go into a whole laundry list explanation that would be paragraphs and paragraphs long of all the benefits, but I'll spare you the details.

Adolfo, this needs to be done in two steps if you wish to do a database lookup.

The simple way of doing it is to spare the database lookup, the way we do it here on DaniWeb. For example, you can see our URL Is:

https://www.daniweb.com/programming/threads/536532/how-obtain-url-friendly-with-htaccess

We include the friendly slug as well as the topic ID # to spare the overhead of a database lookup.

If you do want to do it with a database lookup, there's the tradeoff. You get the cleaner URLs but it's at the sacrifice of overhead.

To do it that way, you need to first use .htaccess (assuming you are using an Apache web server, you need to use nginx.conf if you are using an Nginx web server) to redirect:

https://www.myshop.it/shoes-armani to https://www.myshop.it/product.php?slug=shoes-armani

(Let me know if you need further help with this part, and show me the .htaccess file you currently have)

Then, the product.php file should do a database lookup based on the value of the slug passed in to get the p_id, and then show the …

rproffitt commented: Thanks for pointing out a SEO angle. +16
jwenting commented: it's however extremely fragile as such links can easily change over time and now you've stale information in your permalinks... +16
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I suppose you can take a photo of every page and then use OCR software to convert it to a word document? I guess it depends on what your goals are. Do you want to reprint your book?

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

What related threads?

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

I’m a little confused by your question. Is what you’re showing me JSON or the contents of a PHP array? What are you trying to accomplish?

Issah_1 commented: Is a Json array. I want to convert it into PHP array and echo the output +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

All websites are in HTML. Wordpress is a blogging platform that is written in PHP and generates the HTML for you.

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

Hello right back at ya! :)

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

Like this?

<div class="container section" id="afterHeader">
        <div class="row">                                   
                    <div class="tabs movies">
                                <a class="style1">1^ WEEK</a>
                                        <ul>                                   

                                                <?php
                                                function myTab()
                                                {
                                                    echo str_repeat('&nbsp;', 3);
                                                }

                                                function templateDay($start, $end)
                                                {
                                                    $dayOfWeek = ['LUN', 'MAR', 'MER', 'GIO', 'VEN', 'SAB', 'DOM'];   
                                                    $toDay = date('N') - 1;

                                                    for ($i = $start; $i < $end; $i++) {
                                                        echo '<li>';
                                                        echo $dayOfWeek[$toDay] === $dayOfWeek[$i] ? "<a style='color:red'>" . 'OGGI' . '</a>' . myTab() : "" . $dayOfWeek[$i] . '</a>' . myTab();
                                                        echo '</li>';
                                                    }
                                                }
                                                templateDay(3, 7);
                                                templateDay(0, 3);
                                                ?>


                                        </ul>
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Can you please describe what you mean by search box? Usually a search box is just an empty text field where a user types in what they want to search for and then clicks a search button. Are you thinking of an autocomplete? Or a dropdown?

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

Starting September 1st, about 25% of crawl requests started returning 304 Not Modified instead of 200 OK. Prior to that, there were just a small handful of such requests per day.

I did not make any code changes that would introduce returning this header. Once I noticed, however, I tried visiting a handful of the pages as a logged-out user (where caching is enabled) and noticed that my Chrome web browser was also returning 304 headers.

We use Cloudflare. Did something change either with Googlebot (making the request) or with Cloudflare (responding to the request) that would cause this change of behavior? I found no articles suggesting that Googlebot just recently started using the if-modified-since header.

Edit: I'd like to add that I have Cloudflare configured to cache HTML pages for logged out users.

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

Without taking too close a look, are you using AMP? If not, as a publisher, you should be. Are you using Google Search Console? Do you track your Core Web Vitals score? I would start there. Let me know, and then I can help you dig deeper.

Don Codex commented: We do use Google for search +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The Javascript code executes sequentially. On line 7 you set the constant days. A constant is meant to never change. However, you set it again on line 28? I'm not sure why.

Same problem with the const DEADLINE. It's a constant, and yet you're trying to set it to two different values, on line 8 and then again on line 29. You can't do that. If you need the value to change, you need to make it not a constant. The constants START and TODAY just need to be set once as well.

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

I would stick to stock image databases such as shutterstock.com or Adobe Stock Photos. Unfortuantely, I couldn't even begin to tell you what their collection of car images is like.

If nothing like this exists, something you may wish to do once you've built your own database of royalty free car images is to license it to others. You probably aren't the only one with a need. And it's been my experience that when you have such a need for something like this, and have spent so long curating your collection, others have a need for it too!!

rproffitt commented: Great idea there. Still would avoid any Mustang or car named Eleanor. +16
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I am trying to implement a work-around until I can get the proper coding in place. I've been reviewing how to use the window.location.reload. No Luck.

I don't believe that's the correct strategy. What I would do is make sure that the Javascript that injects the <iframe> is set to trigger immediately after the AJAX xhr request that updates the HTML contents of the DOM. Currently I think you have it just set to trigger after initial webpage load. You also want it to trigger whenever the HTML contents are updated.

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

Searchmed, were you able to fix your issue?

searchmed commented: I am trying to implement a work-around until I can get the proper coding in place. I've been reviewing how to use the window.location.reload. No Luck. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I was able to successfully reproduce your issue, and I did see that the HTML code when the page works is identical to the HTML code when the page does not work.

However, I'm not sure what ad server you're using to generate the ad, itself. At first I wondered whether it is it possible the ad is frequency capped (e.g. only show it if a session cookie doesn't already exist in the web browser)? It's very common for most ads to be frequency capped. However, upon further inspection with Chrome DevTools, I do see that when the ad isn't displayed, it is still loaded by the browser (the file show_i.php?compl=380).

However, I think I figured out what's going on. You have too much AJAX going on for your own good.

If I go to your homepage, it loads as a normal webpage. There's some Javascript that says to download this show.php file and then inject it as an iframe into the page. However, if I then click on the Contact or Terms of Service or Privacy links at the bottom of the page, they don't load like regular links. Instead, you're using AJAX to dynamically inject the contents of the page into the DOM without a page refresh. If I then click on the Web link at the top left of the page to return to your homepage, it does it the same way. It use AJAX to perform an xhr request and load the JSON that looks something …

searchmed commented: Outstanding Dani:) Thank you for the in-depth review and feedback. Much appreciated. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there!! Welcome to DaniWeb!!

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

A string encased in single quotes means a literal string, meaning don’t evaluate any variables.

A string encased in double quotes means evaluate variables inside it.

Your entire thing is encased in single quotes. Instead, encase it in double quotes and then escape the double quotes inside (so they will be treated as literals and not prematurely close the string).

$sendData = “{ \"messages\" : [ { \"content\" : \"Your order is $new_status.\", } ] }”;

Notice the only double quotes not escaped are the ones that encapsulate the full string. All other double quotes are to be treated as literals.

Unsure what open discussion rproffitt is referring to. He didn’t post a link? Apologies if this has already been answered elsewhere.

Good luck.

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

Currently I store IP addresses as Varchar.

Binary is meant for binary data such as images, executables, etc. Not text.

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

Responsive apps are done using CSS and, specifically, CSS media queries, which engage different stylesheets rules based on the device form factor.

To get started, chick out a CSS framework such as Bootstrap, which does a lot of the heavy lifting for you.

There are some more popular ones, but Bootstrap is the first that comes to mind, and I’m typing this on my phone. Basically any CSS grid framework should do the trick though. Some are targeted more for newbies and some for more advanced users to do more adhoc things.

Do not be scared off by Pritaeas suggesting you need to learn a programming language such as Javascript.

A responsive website is achieved 100% with html and css markup and stylesheets.

Good luck!

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

For me, born in 1982, it's been (roughly) ...

4 years old = BASIC on an Apple IIGS
10 years old = QBASIC on an IBM-compatible PC
13 years old = Visual Basic 4.0 on Windows 3.1
15 years old = VB5 on Windows 95
16 years old = C++ on Windows 98
19 years old = Java, and more advanced C++ / Went through a Red Hat Linux phase for a couple years in college
20 years old = PHP (when I started DaniWeb with it in 2002!)

Have now been running DaniWeb for the past two decades, and haven't looked back from PHP. My fiance works at Apple, so now I've been required to be an Apple person.

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

Sorry, I have absolutely no idea what you are trying to say. Are you referring to Google's latest change last week of replacing title tags with H1 tags in the search results?

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

I'll preface this by saying I have very, very little experience doing SEO for ecommerce. All of my 25 years of SEO experience has been for content-based sites such as online publications, forums, blogs, news, etc.

That being said, I did a google search for your brand name, "oskar jacket", and you don't even rank on the first page. (I found you on page 2).

In looking at your DOM, I'm not seeing anything standing out that is particularly scary. You're using Wordpress with Yoast SEO. However, you are using a crazy number of Javascript plugins, and that can kill your site's performance.

The other thing that I would say is that your pages do come off a bit spammy. Most products have a few reviews that seem to be fake reviews with fake names. Even if they're not, they definitely appear that way. And if they appear that way to me, they appear that way to Google too. That could be a big red flag right there that makes Google find the site not trustworthy.

Are you using Google Search Console? Do you have any manual penalties for things such as link spam in GSC? Be sure to create a Search Console for all four versions of your website: http, https, with www, without www. Otherwise, you might not notice a penalty on one but using GSC with another.

Something else I might suggest is using Screaming Frog to see how your internal link structure looks. However, Isuspect that …

bijutoha commented: "In looking at your DOM" Could you describe the tool you are using for mining the DOM? +3
noah_7 commented: Thnak you so much. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there and welcoem to DaniWeb!! I've found that low quality blog articles can actually hurt SEO because Google can tell when it's fluff pieces designed just to build content and help SEO.

I think it can be tricky. I don't personally have any experience doing SEO for small brick-and-mortar businesses. I can imagine that local SEO is very tricky, because you don't really need more than a splash page that explains what services you provide and your location and phone number, and yet that isn't enough content to make Google like you.

I think the best thing you could really do, in your situation, is to do customer outreach. Get customers to post online reviews, to post about you on their own social, etc. Perhaps contests for one random customer each month receives a free padlock for their yard, or something like that, in exchange for promoting you on their social.

Good luck!

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

Hey there, Frank!! How are you doing?!

As Frank mentions, check out these articles on the Search Engine Roundtable:

Good luck!!