Jump to content

suresh_kamrushi

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by suresh_kamrushi

  1. You must already have 1-1 combination in your table. Hence you can not create same row again and that is what Mysql giving the error.
  2. Thanks Guys!! With str_replace i already figure it out like this $string = "%s% % % sent you a Mystery Gift with"; $possibleSearch = array("% %","%% %","% %%"); $possibleValue = array("%%","%%%","%%%"); $newString = str_replace($possibleSearch,$possibleValue,$string); But really i need it with reg_replace function. Any answer appreciated!!! Thanks in Advance
  3. I have a string like below: I want to remove white spaces between % (percent) sign only by using regular expression so that string will look like Thanks in Advance
  4. Hi Rommeo, you can try this $boxitem = 1; $query = "SELECT * FROM table_user WHERE shoppingbox REGEXP '^$boxitem | $boxitem$| $boxitem ' OR shoppingbox =$boxitem"; Suresh
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.