Code:
foreach($list as $key=>$value)
{
$query = "INSERT INTO carriers (cellSuffixes) VALUES('$value')";
mysql_query($query,$connex) or die("Query failed: ".
mysql_error($connex));
}
echo "done";
mysql_close($connex);
//I don't know what the sytax s/b to get the data to be inserted in the
first row of the column.
Alter or Update is for an exsisting row
Code:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
<ad...@buskirkgraphics.com> wrote in message
news:28422285.219271207072476641.JavaMail.servlet@perfora...
$query = "update carriers set cellSuffixes='$value'";
//
Because you have already inserted 30 records and you are making
changes to your data I think you need to use WHERE clause like this.
//
$query = "update carriers set cellSuffixes='$value' where id=ROW ID
COMES HERE";