User Profile

Collapse

Profile Sidebar

Collapse
Punkis
Punkis
Last Activity: Nov 24 '08, 01:11 AM
Joined: Sep 20 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Punkis
    replied to Encoding and saving password during login
    in PHP
    This is a code i found into the socialengine's plugin.
    I think this does all the work

    Code:
    	// THIS METHOD CREATES A FORUM USER WITH THE SAME USERNAME AS THE CURRENT USER
    	// INPUT: 
    	// OUTPUT: 
    	function forum_user_create() {
    	  global $db, $board_config;
    
    	  // GET NEXT USER ID
    	  $row = $db->sql_fetchrow($db->sql_query("SELECT MAX(user_id) AS max_user_id FROM " . USERS_TABLE));
    ...
    See more | Go to post

    Leave a comment:


  • Punkis
    started a topic Encoding and saving password during login
    in PHP

    Encoding and saving password during login

    Hello all.
    I am having some questions about a subject.
    I am running a small social community using SocialEngine and i want to include phpbb3 with an arcade mod or any arcade board that support high scores.
    My problem is that i do not want my users to re-register into the board. So if I manage to encode the password during login, into the encoding system of phpbb3 or just md5, I will make the registrations my self through the database....
    See more | Go to post

  • Punkis
    replied to Reverse htmlspecialchars or something
    in PHP
    My greek data is written in the database using the decimal format http://htmlhelp.com/reference/html40/entities/symbols.html

    The only way to get the results displayed is when i search with those decimal codes.

    I want to convert the greek letters that i write in the searchbox to those decimal codes before it gives me the results, with this way i will get the correct search results.
    See more | Go to post

    Leave a comment:


  • Punkis
    replied to Problem with Greek characters
    My greek data is written in the database using the decimal format http://htmlhelp.com/reference/html40/entities/symbols.html

    The only way to get the results displayed is when i search with those decimal codes.

    I want to convert the greek letters that i write in the searchbox to those decimal codes before it gives me the results, with this way i will get the correct search results.
    See more | Go to post

    Leave a comment:


  • Punkis
    started a topic Reverse htmlspecialchars or something
    in PHP

    Reverse htmlspecialchars or something

    Hi again.

    I have a project that gets from mysql the data that i search.
    Until 10 minutes ago, the results could not display me correctly the Greek characters from mysql.
    The search system searches the title of the item which contains English and Greek characters.

    I solve this problem with this :
    I use notepad for any encoding i do between ansi, unicode and utf8.
    I wrote into notepad the title...
    See more | Go to post

  • Punkis
    replied to Problem with Greek characters
    Until 10 minutes ago, the results could not display me correctly the Greek characters from mysql.
    The search system searches the title of the item which contains English and Greek characters.

    I solve this problem with this :
    I use notepad for any encoding i do between ansi, unicode and utf8.
    I wrote into notepad the title in English and for the Greek letters i wrote them in HTML encoded characters and i saved it...
    See more | Go to post

    Leave a comment:


  • Punkis
    replied to Problem with Greek characters
    nothing again... i am loosing my mind
    :(
    See more | Go to post

    Leave a comment:


  • Punkis
    replied to Problem with Greek characters
    my the pages that take part for the search are encoded to utf8 and meta charset to utf8 too.
    I import the query encoded with utf8 into a utf8_general_ci table into a utf8_general_ci mysql.

    And the problem still remains.
    I think the problem is in that line you told me.
    Maybe changing htmlspecialchar s with something else.

    also,
    when i write into a page from the html editor Greek letters, then...
    See more | Go to post

    Leave a comment:


  • Punkis
    replied to Problem with Greek characters
    but again, nothing..

    Is there any chance that the greek letters into the queries i import are not written in utf8?
    I do save my sql before i import it with notepad and i encode it with utf8...
    See more | Go to post

    Leave a comment:


  • Punkis
    replied to Problem with Greek characters
    I changed it to this

    Code:
    $tplv['idformat'] .= stripslashes(htmlspecialchars($row['title'], ENT_COMPAT, "UTF-8"));
    but again, nothing..
    Is there any chance that the greek letters into the queries i import are not written in utf8?
    See more | Go to post

    Leave a comment:


  • Punkis
    replied to Problem with Greek characters
    Hi, thank you for your reply.

    I tried to find the file that does this work (as i said is not developed by me)
    and found this :

    [PHP]/* this subastas title and link to details */
    $tplv['id']=$row['id'];
    $tplv['idformat']="<A HREF=\"".$SETTI NGS['siteurl']."item.php?id=" .$row['id']."\">";

    $tplv['idformat'] .= stripslashes(ht mlspecialchars( $row['title']));...
    See more | Go to post
    Last edited by Atli; Sep 20 '08, 04:57 PM. Reason: Added [code] tags.

    Leave a comment:


  • Punkis
    started a topic Problem with Greek characters

    Problem with Greek characters

    Hi all,

    I have a problem with my php and mysql project.
    I use an auctions software, named phpauction for my project.

    I import into my database with utf8 encodingm and I can see the greek letters inside the fields.
    The problem is that when i go to the site for the results, I get question marks instead of the greek characters.
    I have searched a lot, and i found that there is a solution by adding mysql_query("SE T...
    See more | Go to post
No activity results to display
Show More
Working...