Results 1 to 23 of 23

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User vlex's Avatar
    Join Date: Jan:2008
    Location: Sofia
    Posts: 340

    mysql collation encoding

    ,

    . utf8 utf8_general_ci Click image for larger version. 

Name:	encoding.PNG 
Views:	100 
Size:	5.0 KB 
ID:	55064, cp1251 - ????????? .. .. - ?

    ,

  2. #2
    Registered User vlex's Avatar
    Join Date: Jan:2008
    Location: Sofia
    Posts: 340
    ...


    PHP Code:
    mysql_query("INSERT INTO news (author, title, content, date) VALUES ('$author', '$title', '$content', '$date')");
    mysql_query("SET CHARACTER SET UTF8");
    mysql_query("SET NAMES UTF8");
    header ('Location:index.php'); 
    , - - ...

  3. #3
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739
    utf8, . - , , .
    Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19

  4. #4
    Registered User vlex's Avatar
    Join Date: Jan:2008
    Location: Sofia
    Posts: 340
    ?

    --------- 09:58 --------- : 09:56 ---------

    , ...

    require ...

    !

  5. #5
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    :
    mysql_set_charset('utf8');
    .
    , , phpMyAdmin . html-a phpMyAdmin- meta tag-a.
    ''? * *
    - !
    ...

  6. #6
    Registered User vlex's Avatar
    Join Date: Jan:2008
    Location: Sofia
    Posts: 340
    Quote Originally Posted by vbTheKing View Post
    meta tag-a.
    utf8

  7. #7
    Registered User vlex's Avatar
    Join Date: Jan:2008
    Location: Sofia
    Posts: 340
    - tinymce . :
    PHP Code:
    $real_content mysql_real_escape_string($_POST['content']);
    $sufix '<hr><br><font color=#555 size=-2>updated at'.$date('H:n',time()).' By ' $_SESSION['username'];
    $content $real_content $suxif
    ... ???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |