fer0an Posted April 6, 2010 Share Posted April 6, 2010 hello I want to add some post from old site to new. but I want continue if title have "playboy" or "sex" word. any solution? Link to comment https://forums.phpfreaks.com/topic/197719-if-title-have-playboy-or-sex-word/ Share on other sites More sharing options...
oni-kun Posted April 6, 2010 Share Posted April 6, 2010 hello I want to add some post from old site to new. but I want continue if title have "playboy" or "sex" word. any solution? Do you mean you wish to post something, such as code, If it contains those words? It is perfectly alright, if you require help on something containing it. Link to comment https://forums.phpfreaks.com/topic/197719-if-title-have-playboy-or-sex-word/#findComment-1037615 Share on other sites More sharing options...
fer0an Posted April 6, 2010 Author Share Posted April 6, 2010 I mean if this words on the post didn't add this post and continue to add next post can you help me? Link to comment https://forums.phpfreaks.com/topic/197719-if-title-have-playboy-or-sex-word/#findComment-1037616 Share on other sites More sharing options...
oni-kun Posted April 6, 2010 Share Posted April 6, 2010 I mean if this words on the post didn't add this post and continue to add next post can you help me? Your lack of English skills are unfortunately a downfall to recieving help. Why not use a translator? Link to comment https://forums.phpfreaks.com/topic/197719-if-title-have-playboy-or-sex-word/#findComment-1037622 Share on other sites More sharing options...
fer0an Posted April 6, 2010 Author Share Posted April 6, 2010 If there are words(playboy , sex) in this post title is not stored in the database and continue the next post will be investigated and the absence of words to be stored. did you understand my meaning؟? Link to comment https://forums.phpfreaks.com/topic/197719-if-title-have-playboy-or-sex-word/#findComment-1037630 Share on other sites More sharing options...
fer0an Posted April 6, 2010 Author Share Posted April 6, 2010 any solution? Link to comment https://forums.phpfreaks.com/topic/197719-if-title-have-playboy-or-sex-word/#findComment-1037651 Share on other sites More sharing options...
oni-kun Posted April 6, 2010 Share Posted April 6, 2010 If there are words(playboy , sex) in this post title is not stored in the database and continue the next post will be investigated and the absence of words to be stored. did you understand my meaning؟? This should suffice: $title = "I am a playboy bunny! And sexy too."; if(preg_match('/sex|playboy/', $title)) { //Title has those words print "Uh oh!"; } else { //Continue on to next post } Link to comment https://forums.phpfreaks.com/topic/197719-if-title-have-playboy-or-sex-word/#findComment-1037654 Share on other sites More sharing options...
fer0an Posted April 6, 2010 Author Share Posted April 6, 2010 thank you Link to comment https://forums.phpfreaks.com/topic/197719-if-title-have-playboy-or-sex-word/#findComment-1037656 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.