将ID分配给多个按钮PHP [英] Assign ID to mutiple buttons PHP

查看:85
本文介绍了将ID分配给多个按钮PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个for循环显示按钮1-40,但我需要为每个按钮分配一个星期ID



有人帮忙?



我的尝试:



 for($ button = 0; $ button< = 40; $ button = $ button + 1){
echo$ button;
echo< center><< / center>;

}

解决方案

button = 0;


button< ; = 40;

按钮=

Hi I have a for loop to display buttons 1-40, but i need to assign a week ID to each button

Can someone help?

What I have tried:

for ($button = 0; $button <=40; $button= $button + 1) {
       echo "$button";
		echo "<center><</center>";
		
 }

解决方案

button = 0;


button <=40;


button=


这篇关于将ID分配给多个按钮PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆