Php-How to make slug in php

## make slug using this function. Like: stackofcodes.in/2016/01/10/how-to-search-data-from-table-in-php/ function makeslug($str) {     return preg_replace(“/[^0-9a-zA-Z]+/”, “-“, $str); } $tog = how_can i make slug. $slug = function makeslug($tog); Example: Its Look Like: how-can-i-make-slug  

how to fetch field value from table in php

## How to fetch a field value from database in php $r = mysql_query(“select field_name from table_name”); $value [email protected]_result($r,0,”field_name);

How to call two or more ajax request parallely in php

<script> $(document).ready(function() {     $(document).on(“click”, “._SP12_MR11″, function()     { var datastring = {‘DSUC’:SMJX_SMR_SUC,’SRCON’:SMJX_SRCH_ON, ‘LCNT’:SMJX_SMR_LST_CNT,};         $.when(             $.ajax({                 url:'<?php echo base_url().”search-ax-shwmre-st”;?>’,                 type: ‘POST’,                 data: datastring,                 success:function(rta) { // DO YPUR CODE-1                 }                     }),             $.ajax({                 url:'<?php echo base_url().”search-ax-shwmre-rd”;?>’,                 type: ‘POST’,               data: datastring,                success:function(rtb) {                 // … Read moreHow to call two or more ajax request parallely in php

In Show more on click show more button script like this-works

<script> $(document).ready(function() {    $(document).on(“click”, “._SP12_SHOWMORE”, function()    {      var SMJX_SRCH_DPERPG = 5;      var SMJX_SMR_SUC = $(“._SP12_SHOWMORE”).attr(‘data-srch-uc’);                 var SMJX_SMR_LST_CNT = $(“._SP12_SHOWMORE”).attr(‘data-lstcnt’);      var SMJX_SRCH_ON = $(“._SP12_SHOWMORE”).attr(‘data-srch-on’);      var SMJXRET_GTLST = false;      var SMJXRET_GTGRD = false;      var SMJXRET_GTLSTDT = “”;      var SMJXRET_GTGRDDT = “”;     var datastring = {‘DSUC’:SMJX_SMR_SUC,’SRCON’:SMJX_SRCH_ON, ‘LCNT’:SMJX_SMR_LST_CNT,};      $.ajax({         url:'<?php echo … Read moreIn Show more on click show more button script like this-works