【发布时间】:2011-08-10 15:04:22
【问题描述】:
我通过查询从数据库中获取一些数据,然后通过 While 循环对其进行循环:
$r=mysql_query("SELECT * FROM advertisement_packages");
while($a = mysql_fetch_assoc($r)):
echo $a['exposure]; //This prints out 1,2,3,4
endwhile;
我该怎么做,所以曝光 = 1 就是曝光 = 1 = 迷你 和 曝光 = 2 = 标准等等等等。
【问题讨论】:
-
什么?你能提出你的问题吗?
-
你想打印出'exposure = 1', 'exposure = 2'?