我需要一个正则表达式脚本来删除这些特定单词的双重复.如果出现这些字符,请将其替换为单个.
/[\s.'-,{2,0}]
Run Code Online (Sandbox Code Playgroud)
这些是如果他们来了我需要用同一个字符替换它的角色.
警告我的PHP文件..
警告:mysql_query()[function.mysql-query]:对第25行的C:\ Program Files\xampp\htdocs\shadaab\register.php中的用户'ODBC'@'localhost'(使用密码:NO)拒绝访问
警告:mysql_query()[function.mysql-query]:无法在第25行的C:\ Program Files\xampp\htdocs\shadaab\register.php中建立到服务器的链接用户'ODBC'的访问被拒绝@' localhost'(使用密码:否)
我的连接文件:
$localhost='localhost';
$username='root';
$password='';
$dbname='school';
$con=mysql_connect('$localhost','$username','$password');
mysql_select_db('$dbname',$con);
Run Code Online (Sandbox Code Playgroud) <?
require("config.php");
$result = mysql_query("select s_title, p_name, date from tbl_slist_info where publish='u' ORDER By date ") or die(mysql_error());
while($row=mysql_fetch_assoc($result))
{ ?>
<tr>
<td colspan="3"><?=$row['date']?></td>
</tr>
<tr>
<td><a href="g.php?title=<?=$row['s_title'] ?>"><?=$row['s_title'] ?></a></td>
<td><a href="p.php?title=<?=$row['p_name'] ?>"><?=$row['p_name'] ?></a></td>
</tr>
Run Code Online (Sandbox Code Playgroud)
我想要一个mysql查询,以便我可以根据日期显示记录.假设在1月1日我有5个请求.1月2日我有4个请求.通过这种方式
1-Jan
_____
A type1
B type1
C type2
D type1
E type3
2-Jan
____
W type4
X type1
Y type3
Z type5
Run Code Online (Sandbox Code Playgroud) 我使用此查询从表中删除roman和hindi colunn值.
DELETE s.hindi, s.roman from song s where name=X;
Run Code Online (Sandbox Code Playgroud)
错误: Unknown table 'hindi' in MULTIDELETE.