我计算标题为的行数:
this-is-the-title
如果count大于0,我会将count附加到标题并插入:
this-is-the-title-1
当再次插入时,我需要再次检查,但是where title = 'this is the title‘将不会捕获任何带有附加数字的标题。
所以我试着:
LIKE 'this-is-the-title%'
这是可行的,但现在它还可以拾取任何标题,例如:
this-is-the-title-extra-string
如何查询表才能计算“this-is- the -title”和任何后续“this-is- the -titl
我正在尝试使用正则表达式从.html文件中剥离所有html注释。因为我们知道html注释格式是<!-- some comments -->,我已经创建了这样的regexp
/<!--.*-->/gs
它可以工作,但如果文件中有多个注释块,它不会将任何人剥离到另一个块,而是从first <!--到last --> F.e.
some html tags
<!-- some comments 1 -->
some html tags 2
<!-- some comments 2-->
它剥离了整个
<!-- some comment
我在html中有以下代码:
<head>
<meta content="text/html; charset=UTF-8">
<title> Flora – Create a Plate – Make Your Own Kid’s Plate</title>
<meta name="Description" content="Create your own unique personalised kid’s plate with backgrounds
我是android开发人员。我通过PHP代码从MySQL数据库获取数据:
<?php
$con = mysqli_connect("..........", "...........", "........", "......");
$query = mysqli_query($con,
"SELECT * FROM news WHERE status = 'actual' ORDER BY id DESC");
$someArray = [];
$som