Jump to content

mursalat

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by mursalat

  1. mysql_set_charset() was the solution... sorry to not answer, i did mysql_set_charset('utf8') - and it worked!
  2. i did that already.
  3. just add a .00 to it when you echo it, php only gives to decimal places if there is any value in decimal places.
  4. first time i see a php freak getting stuck with a with question's answer
  5. the path is: '../../../msprog/offroad/cert/eo/' forget about the server root, it works for me without the server root stuff, so the new code can be: <?php $filename = '../../../msprog/offroad/cert/eo/'.$row['engine_year'].'/ofci/'.$row['engine_executive_order'].'.pdf'; if (file_exists($filename)) { $engineFamilyName = "<a href=".$filename.">".$row['engine_family_name']."</a>"; } else { $engineFamilyName = $row['engine_family_name']; //This is what it echos even though a file is there. } echo $engineFamilyName . "<br />"; echo "<a href='$filename'>$filename</a>"; //I check the file path and it works. The link goes to the pdf document. ?>
  6. please someone - i really need help in this!
  7. i tried this print_r(mysql_client_encoding()); and the result was latin1, so how do i change this client encoding?
  8. @adam - I tried it already and it didn't work, i am using mysql database.
  9. how do i represent non-english character from the database? i am using mysql, so say when i want to show some chinese characters "你好世界" (hello world, translated using babel fish ) from the database i get '????' signs, so how do i show it? in the database its stored perfectly (saw it using phpmyadmin.) I tried including a file that contains the chinese characters, and it comes out fine. so its gotta be some error in the process of getting data from the database.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.