Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add text query in Mysql


bdyaniv

Recommended Posts

Posted

Hi,

 

I would like to know what's the right Mysql query for adding text to an existing field.

for example

The field's name is "Info" and contain the text "hello"

I would like to add the text "Bye Bye" in another line so It'll be like this:

Hello

Bye Bye

 

Thanks a lot

Whatever you do Be Goooood

Posted

its

tep_db_query("insert into " . TABLE_DEFINED_FOR_THIS_PURPOSE . " (the_text_field)VALUES ('hello world')");
tep_db_query("insert into " . TABLE_DEFINED_FOR_THIS_PURPOSE . " (the_text_field)VALUES ('bye bye world')");

assuming the table has an autoincrement column.

Posted
its

tep_db_query("insert into " . TABLE_DEFINED_FOR_THIS_PURPOSE . " (the_text_field)VALUES ('hello world')");
tep_db_query("insert into " . TABLE_DEFINED_FOR_THIS_PURPOSE . " (the_text_field)VALUES ('bye bye world')");

assuming the table has an autoincrement column.

 

Thanks

I actually need to use the PHP_MY_ADMIN and just run the query there.

Do you know how to do it ?

Whatever you do Be Goooood

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...