Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Inserting new data into an existing table row


glimmerwigg

Recommended Posts

I'm trying to flag a set of data by putting a value of 'approved' into an otherwise null cell at the end of its row. To do this, I need to include the product ID in the 'tep_db_query(insert into...' instruction. However, I keep getting an SQL syntax error message.

 

I'm obviously doing this completely wrong. Here's an example of the kind of thing I've been trying:

 

tep_db_query("insert into gp_film_for_review where id = .$id. (approved) values ('approved')");

 

any ideas?

 

Thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...