
How to vertically center text in CSS Grid and Flexbox
Take this simple HTML: And, some basic styling: It looks like this: Now, we want to center this text vertically. The first modern approach you can take is with flexbox. Just add these two lines
Take this simple HTML: And, some basic styling: It looks like this: Now, we want to center this text vertically. The first modern approach you can take is with flexbox. Just add these two lines
Let’s start with the HTML: So, now we want to style the placeholders themselves. If you want to keep it simple, most modern browsers support this: You can use the ::placeholder pseudo-class like any other.
Let’s take this simple HTML structure: The first method involves some straight-forward CSS: Doesn’t get much simpler than that: And, if it this is all you need to do, you can probably stop here. But,
This is one of the reasons I still like jQuery. I’m sure all the new frameworks do similar stuff, but things like this are so simple with jQuery. Anyway, jQuery.post() is a shorthand Ajax function.
Forget personal taste. I’m telling you as sure as I’m sitting here… whatever your personal thoughts about the differences between this before and after… one will get you, “Um well… something just feels off.” And,
PHPMailer is a popular open source, email-sending library used by applications like WordPress, Drupal, SugarCRM, Joomla and others. This tutorial will show you how to install PHPMailer, set up SMTP and send email in PHP using PHPMailer.
If you want to add featured images to your WordPress RSS feed (as enclosures), here’s what to do.
In this tutorial, I’ll show you eight different ways to add to, remove from and insert elements to/from an array in PHP. PHP array functions used include: array(), array_push(), array_unshift(), array_pop(), array_shift(), array_slice(), count(), array_diff() and array_splice().
Legitimate uses of static classes in PHP
Object-oriented programming is MORE (much more) than knowing how to write a class. It’s about how you build your applications. I call it an “approach”… but it’s an approach *to application-building*.
Inheritance in PHP tutorial with example code.
The guts of a secure password reset feature for your login script… using PHP
First: should you use sessions or cookies? That’s the first big question I see. In most cases, you should use sessions. There are some exceptions, but it’s usually very specific cases and at the far
Use filter_input(), filter_var() and these two other PHP functions to add another layer of security to your applications
MySQLi makes grabbing the last inserted row easy. After running your insert query, you can do this: $id = $mysqli->insert_id; Then, you can query for that row like this: $result = $mysqli->query(“SELECT * FROM table_name
With MySQLi, it looks like this: $mysqli = new mysqli($db_host, $db_user, $db_pass, $db_name); But, PDO is a bit different because it can interact 12 different types of databases: Oracle, PostgreSQL, SQLite, MySQL, Cubrid and several
Here’s one I don’t see talked about much: $name = filter_input(INPUT_POST, ‘name’, FILTER_SANITIZE_STRING); What this does is grab the “name” element from your POST array and run it through the the filter: FILTER_SANITIZE_STRING… which removes
Bit of a hot topic lately in my inbox. Here’s what an old, vulnerable query might look like: $expected_data = 1; $query = “SELECT * FROM users where id=$expected_data”; $result = $mysqli->query($query); The problem here
I’m going to quickly show you the exact code to send a tweet using the Twitter API. Then, how to learn to build a full-fledged Twitter app. Let’s dig in. Before you start, you need
A simple PHP cURL tutorial and example. Learn how to use curl_init, curl_setopt, and curl_execute. Also learn how to POST data to a remote URL using cURL. Ready to learn even more PHP? Take my
PHP 7’s null coalescing operator is handy shortcut along the lines of the ternary operator. Here’s what it is, how to use it and why: Ready to learn even more PHP? Take my free Beginner’s
Subscribe So You Never Miss An Episode [saf] May the force be with you… 😉 Unless you’ve been under a rock (which is totally cool if so) you know PHP 7 has been out for
INSPINIA has sold 29,598 units at $18 a piece. That’s $532,764. SmartAdmin sold 20,136 units at $12 a piece. That’s $241,632. Unify… $321,828. That’s just three of over 800 Bootstrap templates on WrapBootstrap. And that’s
In 2011, online survey giant, SurveyMonkey, acquired Wufoo Forms for 35 million. SurveyMonkey itself does 113 million a year in revenue. And, it’s valued at nearly 1.35 billion. Both of these services serve a simple
I always get a kick out of jQuery… especially animation methods. It’s one of those things that just wows clients… and truthfully, I feel pretty cool watching the animations run on a site. That said,
I remember this annoying error like it was yesterday. It always baffled me a bit when I first started learning PHP (I know… N00B!): Fatal error: call to a member function fetch_assoc() on a non-object.
jQuery selectors can be a bit tricky. :first-child, :last-child, nth-of-type, is it zero-based, why is it grabbing that element when I expected this one. Fun stuff. On a recent project, I needed to find an
When you verify an email address, there’s really three things you want to do: Don’t submit the form unless the email address is valid Give hints about what’s wrong and how to fix it Make sure
Arrays are like that crazy uncle who gets a little too drunk at Christmas and starts telling inappropriate jokes at the dinner table. You love ’em… but you hate ’em. You can efficiently store and
[smart_track_player url=”https://soundcloud.com/johnmorrisonline/jms071-grizzly-bear-rips-freelancer-to-shreds-you-take-his-job” social=”true” social_twitter=”true” social_facebook=”true” social_gplus=”true” ] Subscribe to the Podcast [saf] Here’s the big thing to get to succeed as a freelance web developer: If you and your buddy are hiking in the forest
When you create a contact form in PHP, there’s a couple key parts you need to make sure are in place so the person actually using the form doesn’t want to suddenly get into knife-throwing
In this PHP tutorial, you learn how to use the PHP DateTime class introduced in PHP 5.2 instead of the PHP date function. Watch the tutorial below: Links mentioned in the video: How to Start a
In this tutorial, you’ll learn how to create a custom admin and login theme for WordPress. Watch the tutorial below: Links mentioned in the video: How to Start a Blog in Less Than 15 Minutes Let
In this PHP tutorial, you’ll learn how to create a custom 404 page not found error page. Watch the tutorial below: Links mentioned in the video: How to Start a Blog in Less Than 15 Minutes
In this PHP tutorial, you’ll learn how to send mail using PHP. Watch the tutorial below: Links mentioned in the video: How to Start a Blog in Less Than 15 Minutes Let me help publicize your blog
In this PHP tutorial, you’ll learn how to parse XML using SimpleXML and PHP. Watch the tutorial below: Links mentioned in the video: How to Start a Blog in Less Than 15 Minutes Let me
In this PHP tutorial, you’ll learn how to create a zebra striped table by adding odd and even classes in a loop using PHP. Watch the tutorial below: Links mentioned in the video: Link to
In this jQuery tutorial, you’ll learn how to add an active class to a menu item based on the page URL using jQuery… so you can highlight that menu item. You’ll learn: how use the
In this jQuery tutorial, you’ll learn how to set the height of a DIV to 100% of its parent. You’ll learn: how to set variables and target selectors how to get and set div height
In this jQuery tutorial, you’ll learn how to build a jQuery accordion. You’ll learn: how to slideUp() and slideDown() different elements how to use relative selectors to target elements in jQuery how to use the
In this responsive web design tutorial, you’ll learn how to build a responsive menu. You’ll learn: how to target different breakpoints with media queries how to write the CSS to “flip” the menu from vertical
In this jQuery tutorial, you’ll learn how to submit a form, post the data and format the response using jQuery and AJAX: Here’s the code I used in the video: Index.php Process.php If you enjoyed
Here’s how to load content into a div on click using the AJAX load method: Here’s the code I used in the video: If you enjoyed this tutorial and want to keep learning, check out
Here’s how to build a grid layout for WordPress via shortcodes and WP_Query: A lot of WordPress developers immediately rush to query_posts in order to create custom loops. But, query_posts is meant for altering the
Here’s how to create a pure HTML and CSS dropdown menu: Here’s the code I used in the video: If you get value from this code snippet, please consider sharing it with another developer or
Here’s how to prevent XSS attacks by escaping output in PHP: Here’s the code I used in the video: What Is XSS? XSS stands for cross-site scripting and it refers to a type of attack
Here’s how to create some simple CSS button styles: If you get value from this code snippet, please consider sharing it with another developer or group who could benefit from it.
How do you PHP try catch blocks to efficiently handle errors? Here’s the answer: Here’s the code I used in the video: If you get value from this code snippet, please consider sharing it with
How do you implement a 301 header redirect in PHP? Here’s the answer and how to do it: Here’s the code I used in the video: If you get value from this code snippet, please
Should you use MD5, SHA-1 or BCRYPT when hashing and storing passwords using PHP? Here’s the answer and how to do it: Here’s the code I used in the video: If you get value from
Over 7,700 other freelancers have started thriving freelance businesses using the information on this blog. Are you next? Subscribe below to get notified whenever a new article is posted and create your own success story:
75 SEO and website clients now. My income went from sub zero to over 6K just last month. Tracking 10K for next month. Seriously, you changed my life.
By the way, just hit 95K for the year. I can’t thank you enough for everything you’ve taught me. You’ve changed my life. Thank you!
I started this 3 days ago, following John’s suggestions, and I gained the Upwork Rising Talent badge in less than 2 days. I have a call with my first potential client tomorrow. Thanks, John!
John is the man! I followed his steps and I am flooded with interviews in a week. I got into two Talent clouds. The very next day, I got an invitation from the talent specialists from Upwork and a lot more. I wanna shout out, he is the best in this. Thanks John for helping me out!
After viewing John’s course, I made an Upwork account and it got approved the same day. Amazingly, I got my first job the very same day, I couldn’t believe it, I thought maybe I got it by coincidence. Anyways I completed the job and received my first earnings. Then, after two days, I got another job and within a week I got 3 jobs and completed them successfully. All the things he says seem to be minute but have a very great impact on your freelancing career.
I’ve been in an existential crisis for the last week about what the heck I’m doing as a business owner. Even though I’ve been a business for about a year, I’m constantly trying to think of how to prune and refine services. This was very personable and enjoyable to watch. Usually, business courses like this are dry and hard to get through…. repeating the same things over and over again. This was a breath of fresh air. THANK YOU.
I’ve definitely learnt so much in 2.5 hours than I’d learn watching different videos online on Youtube and reading tons of articles on the web. John has a natural way of teaching, where he is passionately diving in the topics and he makes it very easy to grasp — someone who wants you to really start running your business well by learning about the right tools and implement them in your online business. I will definitely share with many of the people I know who have been struggling for so long, I did find my answers and I’m sure will do too.
I have been following John Morris for several years now. His instruction ranges from beginner to advanced, to CEO-level guidance. I have referred friends and clients to John, and have encouraged my own daughter to pay attention to what he says. All of his teachings create wealth for me (and happiness for my clients!) I can’t speak highly enough about John, his name is well known in my home.
John is a fantastic and patient tutor, who is not just able to share knowledge and communicate it very effectively – but able to support one in applying it. However, I believe that John has a very rare ability to go further than just imparting knowledge and showing one how to apply it. He is able to innately provoke one’s curiosity when explaining and demonstrating concepts, to the extent that one can explore and unravel their own learning journey. Thanks very much John!
John has been the most important person in my freelance career ever since I started. Without him, I would have taken 10 or 20 years more to reach the position I am at now (Level 2 seller on Fiverr and Top Rated on Upwork).
Over 7,700 other freelancers have started thriving freelance businesses using the information on this blog. Are you next? Subscribe below to get notified whenever a new article is posted and create your own success story:
© 2021 IDEA ENGINE LLC. All rights reserved