I need to put a slash on the end of all rows for a particular set.
ie. Add / where type = "subcategory".
How do I do that?
How do I append a character to the end of a field?
Moderator: General Moderators
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
How do I append a character to the end of a field?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Re: How do I append a character to the end of a field?
That's it - thanks.
How do I query for various characters in a string. ie. , + *...etc.?
I Want to find them all and stop them being added to a field when the page turns over.
How do I query for various characters in a string. ie. , + *...etc.?
Code: Select all
if (strpos($title, '-') !== false)
{
$invalidtitle = "yes";
}Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.