Jump to content
php.lv forumi

SELECT pa pirmo burtu (LV alphabet)


ideq

Recommended Posts

Labdien! :D

Atvainojos par manu lv. valodu.

Man ir problema, man ir vardu baze un es gribu nemt vardus pa pirmo burtu.

$this->db->getAssocList("SELECT * FROM `names` WHERE `gender`='F' && SUBSTRING(name, 1,1) ='" . $letter); AR LIKE tapat ka ar Substring

Bet mysql doma, ka A un Ā ir viena burte. Bazes encoding: utf8_general_ci

Varbut jus zinat, kur ir problema?

Paldies

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...