我已存储在我的数据库XAMPP一些印地文和乌尔都语写有我设置utf8_unicode_ci
和首先,我以前<title>
标签写这行 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
在我的网页,然后我用这条线<meta charset="utf-8"/>
替换UPER线。Uni-Code在数据库和界面上不能同时运行?
当我在'phpmyadmin'中插入值并在网页上显示这些值时,它显示?????
网页上的问号,但在'phpmyadmin'中它显示出良好的单向代码书写。
然后我更新这些uni-code列通过我的网页更新这些值后,他们有很好的写在网页上的观点,但现在这一次在数据库列中显示آب Ùˆ Ûوا
这些类型或章程。
现在我没有得到什么happning我纠正一方,另一方转变为'unicode-less'。
这是我的网页代码而我会使用PHP 5.6.11
<!doctype html>
<html>
<head>
<link href="drop_down.css" rel="stylesheet" type="text/css" />
<link href="tooplate_style.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8"/>
<title>Main Page</title>
</head>
<body>
<div>
<div align="right"> <form action="logout.php" method="post"> <input type="submit" value="Log Out" class="Lbtn" name="L_btn"> </form> </div>
<header align="center"><a href="index.html"> Talash -e- Haraf </a> </header>
<nav align="center">
<form action="" method="post">
<input name="srch" type="text" class="searchbar" placeholder="Select language and type word here">
<select name="drp_dwn" class="dropdown dropdown-select" onchange="location = this.options[this.selectedIndex].value;">
<option>--Please Select--</option>
<option value="srch_ru.php">Roman</option>
<option value="srch_e.php">English</option>
</select>
<input name="btn" type="submit" class="button" value="Search">
</form>
</nav>
<div align="right">
<table class="responstable">
<tr>
<th>Pos</th>
<th>Roman</th>
<th>Urdu</th>
<th>Significance</th>
<th>Hindi</th>
<th>English</th>
<th>Type</th>
<th>Action</th>
</tr>
<tr>
<?php
$db=mysqli_connect("localhost","root","","app");
foreach($db->query('SELECT * FROM lafaz') as $obj)
{
?>
<td> <?php echo $obj["pos"] ?></td>
<td> <?php echo $obj["roman"] ?></td>
<td> <?php echo $obj["urdu"] ?></td>
<td> <?php echo $obj["important"] ?></td>
<td> <?php echo $obj["hindi"] ?></td>
<td> <?php echo $obj["english"] ?></td>
<td> <?php echo $obj["type"] ?></td>
<td> <a href="detail.php?id=<?php echo $obj['id']; ?>"> <img title="View Detail" src="detail.png" width="40px" height="35px"/> </a>
<a href="edit.php?id=<?php echo $obj['id']; ?>"> <img title="Edit Item" src="edit.png" width="40px" height="35px"/> </a>
<a href="delete.php?id=<?php echo $obj['id']; ?>"> <img title="Delete Item" src="delete.png" width="40px" height="35px"/> </a> </td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</body>
</html>
''标签是旧的...尝试新的'。 – Xufox
这与任何操作系统有什么关系?重复的答案是操作系统不可知的,它关于PHP,MySQL,HTTP和HTML。你真的经历了[这里]列出的点(http://stackoverflow.com/a/279279/476)吗?如果是这样:更新你的问题与每个点的细节。 – deceze
那么**关于**数据访问**的其他答案中的最大段落**怎么样?!显示一些代码! – deceze