Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
36c6417e
Commit
36c6417e
authored
Oct 24, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除脚本
parent
a4197840
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
del.php
+0
-32
No files found.
del.php
deleted
100644 → 0
View file @
a4197840
<?php
$dbhost
=
'127.0.0.1'
;
// mysql服务器主机地址
$dbuser
=
'us_joshine'
;
// mysql用户名
$dbpass
=
'us_joshine'
;
// mysql用户名密码
$conn
=
mysqli_connect
(
$dbhost
,
$dbuser
,
$dbpass
,
"42EQ-Gh)]xWqAC5M"
);
if
(
!
$conn
)
{
die
(
'Could not connect: '
.
mysqli_error
());
}
$list
=
"SELECT * from `catalog_product_entity_text` WHERE `value` LIKE
\"
%joshine.cn%
\"
"
;
$result
=
mysqli_query
(
$conn
,
$list
);
if
(
$result
){
$date
=
mysqli_fetch_all
(
$result
);
foreach
(
$date
as
$key
=>
$val
){
$key
=
$val
[
0
];
$content
=
explode
(
"<p><img"
,
$val
[
4
]);
$content
=
$content
[
0
];
$sql
=
"UPDATE `catalog_product_entity_text` SET value = '
{
$content
}
' WHERE `catalog_product_entity_text`.`value_id` =
$key
"
;
if
(
mysqli_query
(
$conn
,
$sql
)){
echo
"记录已成功更新。"
;
}
else
{
echo
"错误:无法执行
$sql
. "
.
mysqli_error
(
$conn
);
}
exit
;
}
}
mysqli_close
(
$conn
);
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment