User Profile

Collapse

Profile Sidebar

Collapse
mangal
mangal
Last Activity: Mar 2 '13, 01:54 PM
Joined: Dec 30 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mangal
    started a topic Whole word Search in Postgresql

    Whole word Search in Postgresql

    Hi all .... Im working on search function for an app and have built a pretty decent thing go except one thing.

    Im using the ~* to match the incoming keywords against several fields, 4 varchar and one text ...... its working BUT Im getting partial words which isnt exactly what I wanted (neat but not right) lets me explain more.

    If im searching on the word cat and using this syntax: ~* 'cat' I get back any whole word "cat"...
    See more | Go to post

  • Thank you

    I will try it.
    See more | Go to post

    Leave a comment:


  • How to stop adding/updating duplicate username and email?

    Hello,

    I am creating a web application in which registrations are open as usual. My doubt is, if some one try to create an account by an email-id like '[email protected]' , at same time other user also try to create account by same emailid '[email protected]' , what will happen in this case? I have added a validation to check the duplicate email-id in the database before insert and update in my script but i am thinking if both request submitted...
    See more | Go to post

  • mangal
    replied to Using HTML Forms to pass data to PHP
    in PHP
    What is the solution of stop submission of form on refresh, I am trying lot of tips and tricks, some of them works but I am not satisfied with them. If you have any clean solution please update.
    Regards,
    Mangal Kumar
    See more | Go to post

    Leave a comment:


  • mangal
    replied to How to convert span tags in a String?
    in PHP
    Thank you kovik,

    I will do more research and update you

    Regards,

    Mangal Kumar
    See more | Go to post

    Leave a comment:


  • mangal
    replied to How to convert span tags in a String?
    in PHP
    kovik,

    It is not working in case of font-weight:bold. I have added one more foreach to handle this;

    can be make it one for each by adding one more condition in regular expression:

    Code:
    $content = '<body><p><span style="font-size:11pt; font-style:italic; color:#221E1F">Mangal.</span></p>
    <p><span style="font-size:11pt; font-weight:bold; color:#221E1F">Pankaj.</span></p>
    ...
    See more | Go to post

    Leave a comment:


  • mangal
    replied to How to convert span tags in a String?
    in PHP
    Thanks Kovik,

    You really saved my lot of time, i already tried different regular expression but could not make correct one; as i was including nested <span> logic, may be that was the reason;

    kovik as you were saying that nested span case is different approach; if you have the logic of nested span then please post that also;

    Very-2 thank for your kind help;

    Regards,

    Mangal Ku...
    See more | Go to post

    Leave a comment:


  • mangal
    replied to How to convert span tags in a String?
    in PHP
    Hi, anybody know the regular expression for the post, please post, it will help me lot

    Megards,

    Mangal
    See more | Go to post

    Leave a comment:


  • mangal
    started a topic How to convert span tags in a String?
    in PHP

    How to convert span tags in a String?

    Hi,

    I need of assistance to convert spans having style related bold, ital and underline & color into html bold, underline and/or italicize tags.

    Sample Input String:
    Code:
    <p>In <span style="font-family:'serif', 'Caslon'; font-size:11pt; font-style:italic; color:#221E1F">The Crack in the Cosmic Egg</span> I recounted 
    how, at a gathering of dor mitory mates around a table, <span
    ...
    See more | Go to post
No activity results to display
Show More
Working...