Solved

Trim

Posted on 2011-03-15
1
390 Views
Last Modified: 2012-05-11
I'm using phpmyadmin and I need to trim a space from the password field on all users on company 5133.

trim(Password)from ENT_ED WHERE CompanyNumber = "5133" the space is at the end of the password

it's not working

please help
0
Comment
Question by:rcleon
1 Comment
 
LVL 8

Accepted Solution

by:
Rik-Legger earned 500 total points
ID: 35140102
This part of your query seems right,
but maybe you can post the whole query and/or the result you are getting.

Does this give you the expected result?
SELECT trim('  bar   ');

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question