View file chatservice/ques_db/index.php

File size: 818B
<?php
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
<? include "../ini.php"; ?>
<card title="&#1042;&#1080;&#1082;&#1090;&#1086;&#1088;&#1080;&#1085;&#1072;">
<p align="center">
<?php
mysql_query("truncate table `".$px.$qtable."`");
$file=file("ques.txt");
for($i=0;$i<count($file);$i++) {
$ex=explode("::",$file[$i]);
mysql_query("insert into `".$px.$qtable."` values(0,'".trim($ex[0])."','".trim($ex[1])."');");
//mysql_query("insert into ques values(0,'&#1033;&#1074;� &#1074;&#1083;?','&#1087;');");
}
print count($file);
?>
</p>
</card>
</wml>