Jump to content

mysql help ?


jd2007

Recommended Posts

didn't exaclty answer it but try this

<?php
foreach ($fruits as $value){
mysql_query(INSERT INTO `mytable` (myfruits) VALUES ($value)) or die(mysql_error());
}
?>

you might be able to (untested) to try

<?php
mysql_query(INSERT INTO `mytable` (myfruits) VALUES($fruit)) or die(mysql_error());
?>

Link to comment
https://forums.phpfreaks.com/topic/59207-mysql-help/#findComment-294123
Share on other sites

Archived

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

×
×
  • 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.