我注册了人们订阅某些列表。我想要一个"订阅全部"选项。即使我列出了多个值,也只订阅了一个列表。 HTML:
<select name="lid">
<option value="27:28:30">All Alerts</option>
<option value="27">Child Care Alerts</option>
<option value="28">Youth Basketball</option>
<option value="30">Senior Wellness</option>
</select>
这里我认为我的问题在于代码
@mysql_query("INSERT INTO `subscribers` (`id`, `listID`, `provider`, `firstName`, `lastName`, `number`, `ip`, `date`, `code`, `email`, `prefered_time`) VALUES (NULL, '$list', '$provider', '$firstname', '$lastname', '$number', '$ip', '" . date('n-j-Y H:i') . "', '$code', '$email', '$ptime')");
$query = mysql_query("SELECT `ar`, `instant` FROM `lists` WHERE `id` = '$list' AND `ar` = 'yes' AND `instant` = 'yes' LIMIT 1");
$subID = mysql_fetch_array(mysql_query("SELECT `id` FROM `subscribers` WHERE `listID` = '$list' AND `number` = '$number' LIMIT 1"));
我已经尝试取出&#34; LIMIT 1&#34;但是没有做任何事情。它始终订阅了盖子= 27
请对我温柔。我是这个东西的完整菜鸟。