Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8096031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:19:40+00:00 2026-06-05T21:19:40+00:00

I have a dynamic list code that works just fine. My only problem now

  • 0

I have a dynamic list code that works just fine. My only problem now is that I have put some values in my db using greek chars.

But when I open my page instead of getting the greek chars I get sympols like “?????”

My index.php is set to utf-8 as well as my db.

Is there something else I can do?

<?php
$sql = mysql_query("SELECT * FROM clients WHERE Category='Deksioseis' ORDER BY percentage DESC");
$productCount = mysql_num_rows($sql);
// count the output amount
if ($productCount > 0) {
    $i=0;
    $dynamicListDeks = '<table id="pl_list" class="list">';
    while($row = mysql_fetch_array($sql)) {
        $id = $row["ID"];
        $aa = $row["AA"];
        $client_name = $row["Client_Name"];
        $details = $row["Details"];
        $percent = $row["Percentage"];
        $dynamicListDeks .= ($i==0) ? '<tr>' : '';
        $dynamicListDeks .= <<<HD
<td class="lst_a">$aa</td>
<td class="lst_l">
    <img src="../rooms/{$client_name}_logo.jpg" alt="$client_name" />
</td>
<td class="lst_b">$client_name</td>
<td class="lst_d">$details</td>
<td class="lst_c">$percent%<br /></td>
HD;
        $dynamicListDeks .= ($i==1) ? '</tr>' : '';
        $i++;
        ($i==2) ? $i = 0: '';
    }
    $dynamicListDeks .= '</table>';
} else {
    $dynamicListDeks = "";
}
mysql_close();
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:19:41+00:00Added an answer on June 5, 2026 at 9:19 pm

    What you really should do, is switch to mysqli or PDO, but to solve your current problem, my guess would be you would have to set your database connection to utf8, right after you select the database:

    mysql_set_charset('utf8');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a dynamic list picker script using Jquery 1.3 and PHP that
I have a dynamic list of items that will be used to POST information
I have setup Knockoutjs to dynamically create an editable list of values using the
I have a dynamic MVC4, jQuery Mobile application that works for the most part
I have a problem to get the highest Value in a dynamic List of
The scenario...I have a list of dynamic hyperlink controls on an ajax panel that
I have a dynamic ul list from a database being outputted as categories however
I have created an editor template for representing selecting from a dynamic dropdown list
I need a city/state/country Dynamic Drop-Down List in my Wordpress registration page. I have
I have created a project in Dashcode, inserted a List control, enabled a dynamic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.