Loading...

Follow Lipku on Feedspot

Continue with Google
Continue with Facebook
or

Valid

In this article, I am going to explain two ways to get current URL using JavaScript and jQuery code snippet. 1) Get current URL using JavaScript: In below script, I have created a function alertURL() that will fetch the current URL using window.location.href method of the JavaScript. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript Get Current Page URL</title>
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
The @(the at symbol) symbol in PHP is used to suppress the error reporting for the expression prepended with the @ symbol. However; if track_errors feature is enabled on your server then, any error message generated by the expression will be saved in $php_errormsg variable and this variable gets overwritten on each error. I would suggest, do not use @ symbol, this is not a good practice. Because
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

In this blog, I'am going to write a function to get City, State and Country name by latitude and longitude using Google Map API and PHP. I have created a function called get_city_state_country(), that will help us getting city, state and country name. Below function get_city_state_country() accept two parameters. First parameter is used for latitude of the location and second one is for
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Whether, you are printing a future date or you are creating a report in which, you need to create a weekly report or a monthly report and you want to add n number of days in current date to create your desired report then in such conditions this blog is useful for you. So lets start with the ways, we can add days into date by using PHP language. There couple of ways, first one is, If you are
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

As a PHP developer, we often use MySQL as a database for our projects to store data on the server and we always use English as a language while storing data into the table. In some cases like storing some special characters or symbols which are not into defined into the character set you have enabled for your table, then MySQL store that special characters into bad encoding and when you fetch
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Sometimes, you need to extract age from database of a person or it can be an employee or anyone, then we try to find a technique to fetch the date of birth details, although we can calculate the age via PHP or any language that a developer use to develop application writing some lines of code. However, if we can fetch all these information by writing a line or two in MySQL query then why should
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
In some cases, like you named branch incorrectly and pushed this to remote server or your project name has been changed to some other name you want to rename branch name then this tutorial is going to show you how to rename git branch repository very easily. To make this happen you will need to follow below steps: Rename your local branch: If you are on the same branch that you want to rename
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Sometimes, we need to check HTTP request method in codeigniter while we are working on a form that accept user inputs and we want to validate if form is submitted correctly and match the request method we already defined. Here is the code to detect request method using codeigniter inbuilt functions $this->input->server('REQUEST_METHOD'); and an example: if($this->input->server('
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Hello Guys, Today, I am going to share a very small but useful tutorial with you about how to use MySQL FIND_IN_SET() function in codeigniter. Let's say, you are creating a product listing page and the tag ids  associated with the product are stored in a comma separated column and you want to fetch all records of tag id 5, in this case we use MySQL FIND_IN_SET() function. Now the question is
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Whether you are working first time on JavaScript technology or you are a full time JavaScript developer, in your day to day development sometimes, you need to print object array to see the array values and to take your next steps. In this tutorial, i am going to show you multiple methods of printing object array: How to print array in HTML tag in JavaScript? In below example, I have used

Read for later

Articles marked as Favorite are saved for later viewing.
close
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Separate tags by commas
To access this feature, please upgrade your account.
Start your free month
Free Preview