Jump to content
php.lv forumi

Līdzīgas tēmas .


krisis32

Recommended Posts

Ganjau ka kautkas ar preg_match laikam.

Gan jau ka ne, preg_match darbojas PHP galā, tad jāselektē visi nosaukumi no datubāzes.

MySql ir pašam savs REGEXP, bet man ir aizdomas ka tādi pieprasījumi nebūs sevišķi ātri ja būs daudz rakstu. Nebūtu efektīvāk sataisīt tegu sistēmu? Pie viena tiksi vaļā no vārdiem kuriem savas jēgas nav ("un","ar","līdz" utt).

Link to comment
Share on other sites

Nu, ja tev ir AK SAUSMAS, NEZINU KO DARIT! NEVIENS ARI NEPALIDZ!#@@ situacija, tad luk, te tev bus viens baigi slikts paraugs. Izmanto uzmanigi un tikai tad, ja kads cits neiedos labaku paraugu vai pats neizveidosi labaku. :)

 

$brum = explode(" " ,"Mani sauc Peteris");
foreach($brum as $zum) {
  //izkopejam katru vardu atseviski. Tagad vari darit sql kverijus ar %LIKE% (?)
  echo $zum;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...