Jump to content

Adding info to an existing mysql cell. Is it possible?


wright67uk

Recommended Posts

Im trying to add some info to an existing cell in a mysql database.

 

The cell currently reads:                              This is a piece of information.

I would like to update the cell to read:          This is a piece of information. a great piece of info.

 

I have a variable with the following;            $info = a great piece of info.

 

Is it possible to add $info to the existing cell via php

 

eg.

 

<?php mysql_query("UPDATE mytable SET info = '$info' WHERE row = '$row'"); ?>

 

all fine except I dont want to SET the info to $info I simply want to add $info onto the end of the existing data in the info record.

 

Is this possible and how do i change the above query and go about it?

 

Many thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.