
Set up your development environment by installing a local server, Sublime Text, and Firefox. Run and test PHP code at localhost as you begin writing in this course.
Download and extract the course project files on a windows pc from the local c drive, then open jam control panel, run the server, and browse localhost/takebaric.
Configure PDO by editing the config file, uncommenting the necessary lines, restarting the server, and you’re ready to write PDO code.
Create a database and a test table, then connect to it with PDO on a local server, fetch records, and render them on the front end.
Create a posts table on localhost via phpMyAdmin, defining post_id (auto increment), post_title, post_detail, post_image, post_date, and post_status (default published) with default values for post_views and post_comment_count.
Make the posts dynamic by querying the posts table with pdo, binding the published status, and rendering each post’s title, detail, and image, including a short 150-character excerpt.
Set up variables for post_date and post_author, print them via echo in the post template, and reload to dynamically update author and date across posts.
In this lecture, you create a categories table in MySQL with fields such as category_id, category_name, total_post, total_post_views, created_on, and you insert two sample categories: programming and lifestyle.
this lecture demonstrates making categories dynamic by editing index.php, removing extra categories except the first two, querying published categories, and displaying each category with its total posts (grooming and lifestyle).
Click a post on the homepage to navigate to its detail page, fetch the post id from the query parameter, and display the post title, category, content, and author.
Update the post detail page by handling missing posts through query parameters and redirecting to the homepage, and address undefined variable post title to display content.
Implement a most viewed post feature with PHP PDO and MySQL by querying posts ordered by views, limiting to three, and using prepared statements to fetch results.
Identify the most popular post by querying the posts table, ordering by post_views desc, and limiting to one, then display its title, detail, author, date, and image with PHP PDO.
Create privacy policy and terms and conditions pages for a PHP site, and copy and link the policy content across all pages.
Modify the header to dynamically reflect the current page in the status bar by updating the header.php using a current_page variable, covering home, categories, privacy policy, terms, and post details.
Format the post date by changing post_date to varchar and display it as three-letter month, day, year, and time. Remove the 'posted on' label and preview the update.
Create four more dummy posts by inserting records into the post table with titles, details, categories CTCA and ACTC, dates, and authors; then verify seven posts display.
Sort posts by post_id in descending order to display the newest posts first on the home page, limit to six posts, and link to a post detail page.
Build a search engine using PHP, PDO, and MySQL. Retrieve and display post results with prepared statements and binding parameters, with pagination.
Develop dynamic category pages that use category id and name parameters to render the category title and filter posts, while showcasing the most popular course within each category.
Create a dynamic post category page that binds category ids, filters by published posts, and highlights most viewed and most popular posts across programming and lifestyle categories.
Create a users table in the database with fields for name, email, password, photo, and a registered date, and set the default role to subscriber.
Build a user sign up flow in PHP, collecting first name, last name, email, and password; validate passwords, and insert the new user with prepared statements.
Learn how to securely store passwords by hashing with password_hash, using salt and a cost of 10, and store only the hashed value during account creation for a sample user.
Learn to display sign up success messages in PHP by creating a success variable, echoing a styled alert, and directing users to the sign-in page after account creation.
Add a new nickname column to the users table and update the front end to collect and store nickname using prepared statements with PHP and MySQL.
Implement an email existence check during user signup using PHP and PDO with MySQL, handling the 'email already exists' error and enabling successful account creation.
Build and test sign in functionality by creating accounts, submitting email and password, hashing and verifying credentials, and displaying actionable error messages.
Learn how to show a sign-in successful message by checking a set credentials variable and triggering an alert in PHP, with a simple page reload and correct credential handling.
Learn to implement logout sessions by creating accounts, signing in, and redirecting to the homepage after success, while using PHP sessions to store user data and control logout visibility.
Protect the backend and admin panel accessibility by enforcing admin role checks via session and redirects to block anonymous users.
Implement logout functionality by destroying the session and redirecting to the home page. Update index.php to point to logout.php and create a logout.php that unsets session data and prevents reentry.
Explore managing cookies to remember a user by decoding the cookie id with base64, fetching the nickname from the database, and handling sign in and sign out.
Demonstrates troubleshooting sign-out functionality using cookies, including setting and clearing cookies like user id, and validating database-backed sign-in data.
debug a post detail page that shows an undefined indexed post category by retrieving the category name from the categories table using post_category_id and correcting post category queries and parameters.
Continue the forgot password flow by hashing the new password with cost 10, updating it in the database using the user id, and validating confirm password.
This lecture guides debugging logout issues in a PHP web app by using sessions and current page tracking to fix sign out redirects across index and registration pages.
Resolve remember me issues by removing a faulty session variable and updating the code to correctly handle the user name, ensuring consistent display on the logo button.
Create a seven-column comments table in the database to enable site comment features. Define fields such as comment_id (auto-increment), comment_post_id, comment_detail, comment_user_id, comment_user_name, comment_date, and comment_status with defaults.
Learn to post and insert comments into the database by building a PHP form, posting data, preparing an insert statement, binding post_id, comment_detail, user_id, and saving the date and status.
Query comments for a post and render them on the frontend, showing username, date, and detail, with a no comments message if empty.
Fix undefined index errors on the home page by updating session handling and registration logic, and ensure sign-in, sign-out, and cookie-based user data flow.
Learn to implement a respond comment feature with unapproved and approved states, controlling visibility for individual users or the public using php, pdo, and mysql.
Debug and fix the post comments feature in PHP by correcting post_id handling, using a header redirect to single.php with the post_id query parameter, and ensuring comments post without errors.
Fix categories by hiding empty ones and displaying a category only when posts exist, using a PHP conditional in the complete web development course with PHP, PDO & MySQL.
Learn to implement the previous pagination link in PHP by handling the page parameter, toggling the disabled state, and testing the navigation to ensure it works as expected.
Implement search page pagination on the service page using concatenation, test locally in the browser, and verify that seven posts appear in the search results.
Build pagination for the search page by copying and adapting code, updating get parameters like page_id and page_post_per_page, then test in the browser and verify three posts load.
Work through a pagination driven search page in PHP using PDO and MySQL, adjusting query parameters and links to load pages and navigate between results.
Implement pagination on the category page with PHP by updating query parameters for category id and name, and enabling next and previous navigation through posts.
Implement category page pagination by defining a limit and posts per page in the category service, updating category id and category name, and verifying three posts load with pagination.
Transform the dashboard into dynamic cards for posts, comments, categories, and pages using PHP PDO, prepared statements, and count queries, then wire links to the all posts page.
Create a reusable left sidebar component by copying, removing, and pasting navigation blocks for profiles, categories, and posts, then test the dashboard to ensure everything works.
Build a reusable top navigation component in PHP, placed in the includes folder, and integrate it across add category, post, and profile pages to verify consistent navigation.
Make the category title non clickable by editing the categories page with PHP and HTML code.
Create a category feature in PHP with a form for category name and status, posting to a category page and inserting created by and created on using session or cookies.
this lecture demonstrates deleting a category with php and pdo, using a form and hidden id, binding parameters, executing a delete from categories, and redirecting back with a post-existence guard.
build the edit category feature by adding a form with action edit category.php and method post, include a hidden category id, and perform update category with a header location redirect.
Learn to implement a full edit category workflow in PHP using PDO and MySQL. Capture input from fields, build and execute an update query, and manage redirects and UI feedback.
Create a profile update form with name, email, and photo inputs, enable multipart form data for file upload, and update user records in the database using PHP PDO.
Resolve image upload issues in the profile update workflow by correcting form data and code syntax for multipart handling, testing image selection, and confirming updates with and without an image.
Learn to display all comments in a PHP page using PDO with MySQL, fetching user names and emails and the related post title in a single view.
Build and integrate a comment approval workflow using PHP, PDO and MySQL, including form submission, status updates, and page reloads to toggle approved and unapproved states.
Fixes a front-end comment feature by adding and formatting code, removing restrictions, and reloading to ensure comments post successfully.
Implement unapproving comments by updating the database using PHP, PDO, and MySQL; handle form actions, post comment IDs, and refresh the page to reflect the unapproved status.
Fix the footer by linking privacy policy and terms and conditions, make the logged-in user name dynamic through backend updates, and set those links to open in new tabs.
Implement a self-deletion safeguard in a PHP, PDO, and MySQL admin panel to prevent admins from deleting their own account, with practical code edits and conditional checks.
Learn how to implement updating users in a PHP application, including building a form, handling multipart POST data, and updating fields like nickname, name, email, and status.
Update a user record with PHP, PDO, and MySQL by preparing a statement, binding the user id, executing, and displaying updated fields like name, nickname, and email.
Diagnose image issues by reviewing the code, update the image path and variable names in the text editor, then re-load the page to confirm the image displays correctly.
Expand the left sidebar to show all posts and new items by editing the page logic in your text editor, setting the expanded flag to true, and reloading to verify.
Learn to fetch and display all posts from a MySQL database using PHP and PDO, including category titles, post details, images, dates, authors, tags, views, and comment counts.
Develop the create new post feature with PHP, PDO and MySQL, including title, category, detail, image, and tags, then store in the database and manage uploads.
Identify and fix left sidebar issues by selecting the left sidebar element and addressing a post expansion glitch. Test by loading in a browser to confirm the issue is resolved.
Remove pages from the web sidebar, delete five pages, and reload to confirm the pages are gone.
Welcome to the "The Complete Web Development Course with PHP, PDO & MySQL" course!
Are you new to PHP or Need a bit of refresher?
Then this course will help you get all the fundamentals web development from start to finish with PHP, PDO & MYSQL and we'll all end up by building a complete blogging website with pretty cool admin panel at the same place.
My promises:
I promise you that I will not waste your time ~ I will straightly jump right into the topic that we need to build a complete website with all necessary functionality without wasting your valuable time! My another promise is that ~ If you can finished this course properly then you don't need any other courses to learn web development with PHP, PDO & MySQL. You will gain all the information that you need to be a professional PHP developer. After taking this course ~ you will be able to build any type of website that you need to build with PHP programming language.
Your money investment in this course will be multiplied time to time:
With over 120 lectures and with 10 hours+ of video content, you can bet your money will be well spent in this course.
FAQ (Frequently Ask Question):
Q: Is PHP worth it to learn?
A: Big Word ***YES***
PHP is one of the best programming languages to build website in the world. Some of the top tech company still using PHP like Facebook, Wekipedia, Udemy and much more.
Q: Can I make Money if I know PHP?
A: Yes you can!
Go over some freelancing website then you will see there are a lot of freelancing job available for you if you know PHP. You will see so many projects waiting for people.
Q: Is it possible to land a job if I know PHP?
A: Yes its possible!
Visit Indeed or LinkedIn website there you will see a lot of job posting for PHP developer. So take your time.
This Course Covers the following:
How to use database with PHP
How to build website using MySQL Database
How to use MySQL database with PDO
Form in PHP
Password hashing
Login system
Sign up system
Forgot password functionality
Remember me functionality
Simple messaging system
Comments and messages notifications
Pretty cool looking admin panel
How to build search engine
Implementation of pagination
And much more...
With the awesome project we will be building, you will learn all the skills need to land a job or build a project. I walk through step by step on everything from scratch.
We have 30 days money back guarantee, no question ask!