Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tacking on text at the beginning and end of rows 2

Status
Not open for further replies.

kupe

Technical User
Sep 23, 2002
376
Can I add some text to the beginning and the end of rows in a VARCHAR field, please, Experts?

The purpose is to add some html code - <div class="Names"> and </div>.
 
Hi r937

That's how I have been trying it in php, but for some reason it won't perform. So the next step, I thought, would be to include the tags in the database.

Yours will work well as a query, thanks very much. But how to update it into the table, please ...?
 
Can I really do that, rudy?

If it works (how can I doubt you, rudy) then it's going to be a much used piece of code. Many thanks. paul
 
You are absolutely right. I work mostly with access, but coming over to mysql and php is like arriving in a land of miracles. And the support here on the forum is astonishing (particularly in a world gone mad with what the euphemists term free enterprise.)
 
It's a mystery why you do it, and a thankfully a small band does, but far better not to make a million in every year and to have helped your fellow humans than to have made more than the million by trampling over everyone to get there.

Good for you, Rudy. I feel a bit guilty now at accepting your advice, but very grateful.

(What about Barclays making zillions this past year and it is announced this morning as a wonderful thing! No, you're not mad but I suspect almost everyone else in our sceptred isle.) Cheers
 
If you're interested in learning just how powerful SQL can be, I highly recommend Joe Celko's "SQL for Smarties: Advanced SQL Programming" and "SQL Puzzles and Answers".
 
Thanks, Eric, I've made a note of it ... and will think of rich friends. I see Amazon have sold almost 50k of them. Cheers
 
... and I've just sent off a begging letter for it! Thanks for the news though, Rudy. Frankly I'm an enormous distance from being a sql smarty, being quite a tenderfoot here, but I have to say I really like it, and am amazed by it more each day. Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top