Select your language

How to Get Yesterday and Tomorrow using MySQL SQL Query
I will show you, How to Get Yesterday and Tomorrow using MySQL SQL Query?

Read more …

How to copy a MySQL row within the same table using PHP
I will show you, How to get ip address using PHP.

Read more …

How to copy a MySQL row within the same table using PHP
I will show you, How to copy a MySQL row or record within the same table using PHP.

Read more …

Full Stack Web Developer

A full stack web developer is a technical person who can develop both client and server technologies.

He/she is aware of:

Program a browser technologies (like using HTML, CSS, Bootstrap, JavaScript, jQuery)
Program a server technology (like using PHP)
Program a database technology (like using MySQL, MariaDB)

Full Stack PHP Web Development Course Roadmaps

Course duration : 4-6 Months (depending on your educational background)

Fee: $150

To become a full stack PHP web developer, you will be taught technologies,
in the following order:

HTML

1. Create your first web page

So the very first thing you have to learn, is HTML short for hypertext markup language, which is the standard markup language used to create web pages.

CSS

2. Style your web page

The second technology to learn is CSS short for cascading style sheet, it will be used to style or design the layout of your web page with fonts, backgrounds, beautiful colors and much more.

Javascript

3. Make your web page interactive

The third step after you have learnt HTML and CSS, is to learn JavaScript. JavaScript will be used to create interactive and dynamic web-pages for your website visitors.

What's Next?

Now you know how to use HTML, CSS, and JavaScript to create, style, and make interactive web pages.

The next step is to publish your website, so that the rest of the world can see your work.

There are tons of hosting services to choose from. We have made one for you, for free:

Front-End Developer!

People who create static websites are called Front-End Developers.
Note: Many Front-End Developers also have basic knowledge of different CSS and JavaScript frameworks and libraries, like Bootstrap, SASS (CSS pre-processor), jQuery and React etc.

What About Back-End?

Front-end development refers to the client-side (how a web page looks).
Back-end development refers to the server-side (how a web page works).
Front-end code is used to create static websites, where the purpose is to display the web-page. However, if you want to make your website dynamic (manage files and databases, add contact forms, control user-access, etc.), you need to learn a back-end programming language, like PHP and use SQL to communicate with databases.

4. Make your website dynamic

The last step to become full stack web developer is to learn PHP. PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.

Advantages

The advantage of being a full stack web developer is:

  • You will be able to better understand all aspects of new and upcoming technologies
  • You will be able to reduce the cost of the project
  • You will be master all the techniques involved in a development project
  • You will be able to provide help to all the team members
  • You will be able to switch between front and back end development based on requirements

 

Wanna continue your journey to design specific only and don't want to be PHP backend developer. No worry web design and front end development course is there.

How to create slug alias from Title using PHP & Joomla

In this article, we will learn: How to create a unique slug or alias based on Title for that specific entry, using PHP and Joomla.

Step 1: Add createSlug and generateUniqueAlias functions

We need to add slug / alias functions inside controller.

<?php
public function createSlug($title) { // Convert to lowercase $slug = strtolower($title); // Remove HTML tags $slug = strip_tags($slug); // Replace special characters with a space $slug = preg_replace('/[^\p{L}\p{Nd}]+/u', '-', $slug); // Remove multiple dashes $slug = preg_replace('/-+/', '-', $slug); // Trim dashes from the beginning and end $slug = trim($slug, '-'); return $slug; } public function generateUniqueAlias($alias, $table, $column ) { $db = Factory::getDBO(); $uniqueAlias = $alias; $suffix = 1; // Prepare the query to check for duplicates. $query = $db->getQuery(true) ->select($db->quoteName($column)) ->from($db->quoteName($table)) ->where($db->quoteName($column) . ' like ' . $db->quote($uniqueAlias)).''; // echo $query; while ($db->setQuery($query)->loadResult()) { $uniqueAlias = $alias . '-' . $suffix; $suffix++; $query = $db->getQuery(true) ->select($db->quoteName($column)) ->from($db->quoteName($table)) ->where($db->quoteName($column) . ' = ' . $db->quote($uniqueAlias)); } return $uniqueAlias; } ?>

 

Later we will call these functions in save function using following code to get unique slug/alias:

<?php
$post['slug']=($post['slug']!="")?$post['slug']:$this->createSlug($post['txtName']); // Example usage: // Assuming $db is your database connection object in Joomla $alias = $post['slug']; $table = "#__company"; $column = "slug"; $uniqueAlias = $this->generateUniqueAlias($alias, $table, $column ); $post['slug']=$uniqueAlias;
// Output : title-1, title-2, title-3 respectively, if Title is already found,

 

Hope this helped.


Still need help! no problem, feel free to contact us Today


 Abdul Waheed : (Hire Joomla & PHP Pakistani Freelancer)