我收到以下警告:
警告:implode() [function.implode]:传递的参数无效。
是什么原因造成的,我该如何解决?
$title = $_POST[photo_name_id];
if($title)
{
foreach($title as $titled)
{
$judul[] = $titled;
}
}
$titleds = "('".implode("'), ('",$judul)."')";
这是我的表格:
<tr>
<td>
<?
$pm1= mysql_query("SELECT photo_name FROM photo_name WHERE photo_name_id = 1");
$dpm1 = mysql_fetch_array ($pm1);echo"$dpm1[0]"
?>
<input type='hidden' name='photo_name_id[]' value='<?echo"$dpm1[0]"?>'> :
</td>
</tr>
<tr>
<td>
<?
$pm1= mysql_query("SELECT photo_name FROM photo_name WHERE photo_name_id = 2");
$dpm1 = mysql_fetch_array ($pm1);echo"$dpm1[0]"
?>
<input type='hidden' name='photo_name_id[]' value='<?echo"$dpm1[0]"?>'> :
</td>
</tr>