MySQL Forums
Forum List  »  MyISAM

Re: now implemented SET -- but how do i use it w/ PHP and an HTML form?
Posted by: Brian Moon
Date: December 21, 2005 10:18PM

the data you pass to the query should be a comma separated list of values.

mysql_query("UPDATE table SET ... near_routes='".implode(",", $_POST['near_routes'])."') WHERE id = '".$_POST['id']."'");

Brian Moon
Phorum Dev Team
http://phorum.org/
-----------------------
dealnews.com - How to go broke saving money.
http://dealnews.com/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: now implemented SET -- but how do i use it w/ PHP and an HTML form?
2161
December 21, 2005 10:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.