Article View: comp.os.vms
Article #105Re: PHP "Features"
From: Simon Clubley
Date: Tue, 27 Oct 2026 19:02
Date: Tue, 27 Oct 2026 19:02
25 lines
2280 bytes
2280 bytes
On 2026-10-24, Lawrence DÿOliveiro <ldo@nz.invalid> wrote: > On Sat, 24 Oct 2026 21:02:37 -0400, Arne Vajhøj wrote: > >> The syntax is: >> >> mysqli_stmt_prepare(«stmt», "select «table» from «table» where «field» >> like ?") >> >> and then the value is: >> >> "%" + s + "%" > > Shall I point out what is wrong with that? LIKE wildcards are part of the value, not part of the statement. And yes, this means LIKE-specific escaping is involved if they appear within the value itself: https://dev.mysql.com/doc/refman/8.4/en/string-comparison-functions.html#operator_like Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Walking destinations on a map are further away than they appear.
Technical Details
Message-ID:
<11bqsgq$1pp8h$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11bcbi1$k068$1@dont-email.me> <nk1gv8F1eecU1@mid.individual.net> <11bgih8$f7a$1@reader2.panix.com> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bikkl$2rllh$1@dont-email.me> <11bjcal$340l8$9@dont-email.me> <11bjfvm$35qiv$1@dont-email.me> <11bjim0$36fkf$3@dont-email.me> <11bjkf1$3770s$1@dont-email.me> <11bjm5a$37lkk$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> Newsgroups: comp.os.vms Subject: Re: PHP "Features" Date: Tue, 27 Oct 2026 19:02:50 -0000 (UTC) Organization: A noiseless patient Spider Lines: 25 Message-ID: <11bqsgq$1pp8h$1@dont-email.me> References: <11bcbi1$k068$1@dont-email.me> <nk1gv8F1eecU1@mid.individual.net> <11bgih8$f7a$1@reader2.panix.com> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bikkl$2rllh$1@dont-email.me> <11bjcal$340l8$9@dont-email.me> <11bjfvm$35qiv$1@dont-email.me> <11bjim0$36fkf$3@dont-email.me> <11bjkf1$3770s$1@dont-email.me> <11bjm5a$37lkk$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 27 Oct 2026 19:02:51 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1893649"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0WxyC6clkJRmD54phqM+VQWnqVtQbUMs="; posting-host="48c1c04ddf2ba655a81fa26d5f7ef3f5" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:zrxet6QkrWgPVB9h/afGVOhbNcM= sha256:bbl9htyKblxNpz1BNBggjLWalJTY3ooYuNzhlu4IuGU= sha1:FZ86AAFr3hG1RmgJDhWlOaWVUU4= sha256:SzxC6pC1rFnADUk5bb7FcKJqiWaGb0UZv6otLHe+ZHQ=