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

The above code will let you do it with plain javascript. Are you using something like jQuery by any chance?

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

What do you mean how do you? As in what tools are used to try to be most efficient and keep all your ducks in a row? Where to go to keep up to date with all the topics?

Sorry, your question is just a bit broad and I want to have some clarification before spending a lot of time writing something that wasn’t what you were asking.

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

As gentlemedia points out, there are lots of free tools available online to easily beautify Javascript (properly indent it, etc.)

However, javascript minifiers replace understandable variable names with meaingless names a, b, c, d, etc.

You might be able to understand total = price_of_apples + price_of_pears but seeing lines like a = b + c is meaningless in terms of understanding what's actually happening. Once javascript has been obfuscated in this way, it's not possible to unobfuscate it because it's perfectly interpretable by the web browser, it's just designed to no longer be human readable by having function names and variable names rewritten.

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

Can you please show the code you’ve attempted so far? We can help you if you show us what you tried and where your stuck. It’s considered rude to just ask us to do your homework for you.

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

I have no idea what clickbank was or who the target demographic is. But I guess you would start a mailing list by creating a webpage promoting your mailing list and the benefits and advantages of signing up for it.

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

What’s your question?

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

Hi Max. Nice to meet you. You say you used to work as a game developer? What are you doing nowadays?

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

Hi there!!!! Nice to meet you and welcome to DaniWeb.

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

Anyone see any fun april fools pranks on the web today? I think most companies (I know Google has) have decided not to do it this year.

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

The error Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean means that your PHP code is expecting a MySQL result set, but instead it's getting a boolean (TRUE / FALSE). This happens when your MySQL query fails due to an error and it returns FALSE on failure.

If your query is "SELECT * FROM bilik WHERE idbilik=$idbilik" then most likely it's failing because you are not properly sanitizing the variable $idbilik. It's extremely important to always sanitize any variables you pass into a database query!!

Before the $result = ... line of your code, add the following:

$idbilik = "'" . mysql_real_escape_string($idbilik, $samb) . "'";
JAIYANESH commented: thank u very much....understood madam.... +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I do! I do!!

AndreRet commented: :) :) :) +0
macfan commented: No doubt about it Dani :) +0
_deviance_ commented: Never been here for a while, but I think the remake is unique.. keep it up. Maybe do a small ad by the side would be beneficial for this site upkeep. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Your code <a href="<?php echo "/{$file}";?>"> is a link to the actual .iso file you want them to download.

Instead, you want to create a new page such as download.php?file=123 where an ID for the file is passed in as a parameter. When that page is accessed, it increments a counter in a database for file 123, and then it redirects the browser to the location of the file.

Do you already have a database set up for this web app?

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

What language is it currently in? What is it supposed to do?

AndrisP commented: This sentences seems like Python but without nested indents do not execute +7
macfan commented: Yeah. Definitely do not execute unknown code. For me, though, it seems more like JS than Python..... +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You know what ... I actually thought about it some more, and I realized there actually are tools that can be used to test each different component of a site. For example, I rely on Screaming Frog and DeepCrawl for my SEO audits. Again, it's an aduit ... it audits your site and gives you very detailed data, but then it's up to you (or the SEO you hire) to figure out how to make that actionable.

It's the same with performance audits such as GTMetrix or Chrome PageSpeed Insights. They are automated tools which perform audits on your site's performance, but then it's up to a non-AI intelligence (aka a human developer) to decide what should be made actionable.

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

I put a lot more weight in the W3C Validator because it's either valid code or it's not. Using a compiled language as an analogy, W3C Validator checks for parse errors and whether or not the thing is valid code and will compile. Things like GTMetrix attempt to score you on performance quality, but they do so with a very rudimentary algorithm that doesn't take intent into consideration.

I'm confused as to what benefit you get out of GTMetrix. Don't get me wrong. I use them myself quite heavily when I want to see if there's something I'm not thinking of that can maybe scrape a fraction of a second off of page load times or that sort of thing. I might use them for competitive analysis in SEO to see if a competitor is doing a particular something more efficiently than I'm doing that particular something.

But in terms of using them to evaluate someone else's site as a whole, that wasn't their intended purpose, and they are horrible at doing it. Mostly because their purpose is to find some potential edge cases that you could use to improve your loading times, and they don't factor in site usability, navigation, ease of use, UI/UX, design, professionalism, valid code, efficient code, the quality of the front-end code, or anything else that could possibly ever be used to judge a well-designed/developed site from a bad one. They are simply created as tools to help you find edge cases to improve site …

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

I dunno, rproffitt. I don't really put a whole lot of weight in those things because they are soooo cookie cutter. For example, he got dinged because "There are 5 static components without a far-future expiration date." But maybe that was by design? There are times when you actually do want that. Not only that, but obviously they are not judging you on the quality of your coding or site usability, professionalism, etc.

Also, Link Store is using Wordpress with the WooCommerce plugin, so half the things that it complains about are due to the platform and you can't do anything about them. The other half are if you are using a horribly-coded theme. Wordpress themes are always soooo bloated.

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

Is this a homework assignment?

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

Hi there! Super nice to meet you. So sorry I didn't see this forum thread until now. Welcome!!

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

Try <input type="image" src="images/button_send-email.png" alt="Email">

You can see according to W3 that type="image" creates a graphical submit button.

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

Try Ctrl+Alt+End instead of Ctrl+Alt+Del. Does that work? Good luck.

Lincoln=1cent commented: I did try this, bit not available due to security settings. Might be affecting the previous comment.will know more later once I get to my laptop. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Line 127 says <form id="form1" method="POST" action="/"> which means to post the form data to the homepage of your site, which means the form isn't even working at all. The action should be action="contact.php" instead.

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

I’m very fiscally conservative, and I get the concept of you don’t want the cure to be worse than the disease. However, regardless of what Trump is spewing on Twitter, I don’t think that his advisors behind the scenes will allow mass re-openings and business as usual.

I can see waiting a three week period, and then putting borders around small midwestern towns in middle America that have never exhibited any cases of coronavirus, and allowing a little more leeway for mom and pop shops in these zones who are suffering the most and can’t put food on the table if they stay completely closed for 6 months, with restrictions in place such as only one customer at a time and only for businesses with 3 or fewer employees.

As far as I’m aware, Trump did acknowledge that there’s just no way we can even think of reopening any parts of the coasts right now.

I’m coming from the perspective of someone who was forced to close my business, and my mom was forced to close her business, and yet we still have fixed cost expenses such as rent and utilities, and are just hemorrhaging through our life savings and retirement money right now, with no possible end in sight.

Rent for retail space in NYC, for example, can be as much as $1000/sq ft or more. A 500 sq ft mom and pop store is paying $42K/mo in rent. That's all fine and good when there's …

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

Oh nevermind!! I was accidentally looking at a property that I never look at, so I really had not dismissed the notification since 2018.

vishnuvis commented: Was about to comment this on why it took that long for google. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I disagree with rproffitt. I think it makes sense to start with one language, focus on it, and learn it.

In the future you will eventually learn how to work with multiple technologies together. However, when first learning programming, picking one language and becoming proficient at it makes sense. Otherwise you’ll end up a jack of all trades and master is none.

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

Ooooh, never mind. Route 66. Got it!

Reverend Jim commented: I love a delayed "aha" +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Soooo I unfortunately had to close my coworking space, DaniPad, for who knows how long. #coronavirus

With no income, I want to temporarily suspend the $600/mo we are paying for business-class Verizon Fios. The online portal says you have to call on the phone to make these kinds of account changes. The phone has a recording that says that, due to the pandemic, no one is staffing the phone lines for account changes.

I can't afford this!

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

httpd.conf is the config file for the Apache web server. lighthttpd.conf is the config file for the Lighthttpd web server. Apache can run on both Windows and Linux. Lighthttpd can run natively on Linux or on Windows as part of Cygwin (*nix emulator for Windows).

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

To incentivize potential answerers, sponsors now enjoy double their reputation power ... in other words, how many points you can influence someone else's reputation by.

The goal is that people will be more motivated to answer questions asked by sponsors, because when sponsors vote up their posts, they carry double the weight.

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

Are you a student studying programming from home? Are you an employee who is working from home for the time being? Or are you a self-employed freelancer?

Has your work shifted during this time?

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

I just throw spaghetti at a wall and see what sticks.

Google Ads does great for me. Facebook Ads does terrible for me. Twitter ads do fine for lighthearted fluff.

rproffitt commented: Our dog would love that. Bit messy but the love of a dog! +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Do you currently have an AdSense account? They are here: https://www.google.com/adsense/new/localized-terms

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

Yes. However, I think for optimal SEO, it's best to add "Suite A" and "Suite B" to lessen confusion with Google Places.

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

Huh???

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

Hi there!! Nice to virtually meet you. Feel free to ask any questions and I’ll try to do my best to personally help.

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

DaniWeb is nearly twenty years old, making us older than SO. We’re community forums while they are strictly Q&A. We try to focus more around the community and the people and getting to know each other.

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

In what guide? Are you just spamming??

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

Oh, the latest version of Google Chrome also now supports <img loading="lazy"> to lazy load images without javascript.

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

An HTML sitemap is just a regular webpage on your site that links to all of your pages for the benefit of your users. Googlebot will crawl this page and, essentially, also find all the other pages you link to.

A plain text sitemap file is a plain text list of all of the URLs on your site, one per line. They can be submitted to Google Search Console so that Googlebot wil get a list of all of the pages of your site you think are important to crawl.

An XML sitemap is an XML file of all of the URLs on your site you think are important to crawl. The added benefit of using an XML sitemap (which is Google's recommended format) is that you can additionally specify the priority of the page (compared to the other pages on your site) and the last time the page was modified, to give Googlebot some additional information to help with their crawl efforts.

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

Who is [name deted by moderator]? Do you feel like your credit card is attached to her PayPal account?

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

For what it’s worth, I’m a Meraki customer and am very happy with them. I have two devices in my coworking space.

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

Be sure to properly sanitize output!!!!!

echo '<a href="profile.php?user='. urlencode($usersUsername) .'">'. htmlspecialchars($usersUsername) .'</a><br>'; // removed one double-quote
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there! What type of stuff do you create?

Jawass commented: developing a page, creating of logo and icon +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I have always known that urlencode() encodes spaces as plus signs and rawurlencode encodes spaces as %20. However, I always struggled to know when to use which. I just finally learned today that you should use rawurlencode() if encoding URI paths and urlencode() if encoding query strings. Who woulda thunk it would be that simple?! :-P

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

A blank page means that there is a fatal error and the page cannot load. Here is some code I wrote so you can log these errors to a file and see what the error is so you can fix it.

https://www.daniweb.com/programming/web-development/code/519970/log-500-errors-to-a-file

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

Nice to meet you!!

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

Looks like Meraki now has a whole section of their site specifically catering to hotels:

https://meraki.cisco.com/solutions/hospitality

beptumunchen commented: ok. very good +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I use Cisco Meraki for the coworking space that I own and it's super simple to set up and perfect for this use. Primary use cases are coworking spaces, hotels, cafes with public wifi, airports, etc.

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

Oh, I see what the problem is. My apologies for this issue, but unfortunately we have a known issue with the ISP you are using where they delay email that we send to you for up to 72 hours. You’ll eventually receive the email.

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

My first programming language was BASIC on my Apple IIGS when I was five or six years old.

We had just gotten a computer and I was really excited about it. I asked how to use it and my computer-illiterate mom said to read the manual, so I did. The manual said that if I press Ctrl + Open Apple + Reset then I could boot into a BASIC interpreter and came with a manual of some of the basic commands that you could use.

I just had a ball typing things like PRINT 12 + 29 = and having it tell me the same answers I came up with on my math homework. I never cheated of course. I was way too nerdy for that.

Anyways, that progressed to doing things like GOTO statements and simple but yet more elaborate programs in my elementary school years.

When I was 12 or 13, I convinced my mom to buy me Visual Basic 4 and I wrote a typing tutor. It was basically a Mavis Beacon clone as I was verrrrrry big on improving my typing speed at that time. I can now type nearly 200 wpm.

When I was 15 I took a class on C++ and then at 17, taught (with teacher oversight) two C++ classes for the required volunteer credit to get into the National Honor Society.

In college they continued to teach us C++, but since I knew it already, I …

rproffitt commented: Thanks. Always interesting to read origin stories. +0