- Joined
- Mar 26, 2012
- Messages
- 1,465
- Reaction score
- 131
I have tried so many freaking text encoding and none work. It either shows all incorrect or the diamonds with the question mark in the echo. Currently this is what it shows: ~Vishni¢Óez~ when it should show ~Vishni†ez~. If you guys can offer me a hand that would be great. Thanks for your time.
PHP:
<?php
// Tried multiple text encoding techniques and none show correctly!
include('config/config.php');
?>
<form id="finduser" method="POST" action="">
<input type='text' id='name' name='name'>
<input type="Submit" Value="Search for User">
<input type="hidden" name="action" value="submitted">
</form>
<?php
if ($_POST['action'] == 'submitted')
{
$name=$_POST['name'];
error_reporting(E_ALL);
ini_set('display_errors', 1);
global $link;
mssql_select_db("Tantra",$link);
$row = mssql_query("SELECT * FROM GameInfo00 WHERE CharacterName = '$name'")or die('Error with query');
$final = mssql_fetch_array($row)or die('Cannot continue query');
echo $final[7];
}
?>