最大下拉大小 [英] Maximum dropdown size

查看:67
本文介绍了最大下拉大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于下拉菜单的奇怪问题。使用php4,mySQL5,Apache 2作为一个快速的XP专业版PC,我有一个表格需要5个下拉列表

具有缩进值。我使用SQL提取值并填充2

变量并使用for-next循环来创建下拉列表。下拉菜单

包含310件物品!如果我有1或2

下拉菜单,它的效果非常好但是只要我添加更多它就会部分创建第3个和

就会停止直到它超时!

所有5个工作因为我改变了他们的位置但它总是停止

通过创建第3个下拉菜单。


我尝试了另一种方法通过取消变量和

使用''while''语句构建下拉列表,通过

读取我的SQL结果并得到完全相同的问题只有2和a

位下拉菜单。


几秒钟或几分钟后停止运行没有

的差异,似乎达不到某一点,只是停止 - 没有错误

消息或任何东西!


我试过增加我的php.ini文件中的资源,但这也是

没有区别。


有人可以推荐替代方案或修复方案吗?


谢谢

解决方案



Shutey:


我对下拉列表有一个奇怪的问题。使用php4,mySQL5,Apache 2作为一个快速的XP专业版PC,我有一个表格需要5个下拉列表

具有缩进值。我使用SQL提取值并填充2

变量并使用for-next循环来创建下拉列表。下拉菜单

包含310件物品!如果我有1或2

下拉菜单,它的效果非常好但是只要我添加更多它就会部分创建第3个和

就会停止直到它超时!

所有5个工作因为我改变了他们的位置但它总是停止

通过创建第3个下拉菜单。


我尝试了另一种方法通过取消变量和

使用''while''语句构建下拉列表,通过

读取我的SQL结果并得到完全相同的问题只有2和a

位下拉菜单。


几秒钟或几分钟后停止运行没有

的差异,似乎达不到某一点,只是停止 - 没有错误

消息或任何东西!


我试过增加我的php.ini文件中的资源,但这也是

没有区别。


有人可以推荐替代方案或修复方案吗?


谢谢



............................................. ..... ........................................

你可以粘贴相同的代码吗?


6月17日,09:31,Georgi Naumov< gonau ... @ gmail.comwrote:


Shutey:


我有一个奇怪的问题是下拉列表。使用php4,mySQL5,Apache 2作为一个快速的XP专业版PC,我有一个表格需要5个下拉列表

具有缩进值。我使用SQL提取值并填充2

变量并使用for-next循环来创建下拉列表。下拉菜单

包含310件物品!如果我有1或2

下拉菜单,它的效果非常好但是只要我添加更多它就会部分创建第3个和

就会停止直到它超时!

全部5个工作因为我改变了他们的位置,但总是停止

创建第3个下拉列表。


我尝试了一种替代方法,取消了变量和

构建带有''while'的下拉菜单声明通过

我的SQL结果得到完全相同的问题只有2和一个

位下拉列表。


几秒钟或几分钟后停止运行没有

的差异,它似乎达到了某一点,只是停止 - 没有错误

消息或任何东西!


我已经尝试增加我的php.ini文件中的资源,但这也是没有区别的


有人可以建议替代方案或修复方案吗?


谢谢



............. ..................................... ............. ................. ..............

你可以粘贴相同的代码吗? - 隐藏引用的文字 -


- 显示引用的文字 -



这里是我目前使用的代码,还有4个相同的

''name = option2,3,4和5''但其他方面相同。


qry =''SELECT field1,field2' ';


I have a strange issue with dropdowns. Using php4, mySQL5, Apache 2 on
a fast XP pro PC, I have a form which requires 5 dropdowns populated
with indentical values. I extract the values using SQL and populate 2
variables and use a for-next loop to create the dropdown. The dropdown
contains some 310 items! It works beautifully if I have 1 or 2
dropdowns but as soon as I add more it partially creates the 3rd and
just stops until it times out!
All 5 work because I have altered their positions but it always stops
part way through creating the 3rd dropdown.

I tried an alternative method by doing away with the variables and
constructing the dropdowns with a ''while'' statement reading through
the results of my SQL and got exactly the same problem only 2 and a
bit dropdowns.

Stopping it running after a few seconds or several minutes makes no
difference, it seems to reach a certain point and just stop - no error
messages or anything!

I have tried increasing the resourses in my php.ini file but this also
made no difference.

Can anyone suggest an alternative or a fix?

Thanks

解决方案


Shutey :

I have a strange issue with dropdowns. Using php4, mySQL5, Apache 2 on
a fast XP pro PC, I have a form which requires 5 dropdowns populated
with indentical values. I extract the values using SQL and populate 2
variables and use a for-next loop to create the dropdown. The dropdown
contains some 310 items! It works beautifully if I have 1 or 2
dropdowns but as soon as I add more it partially creates the 3rd and
just stops until it times out!
All 5 work because I have altered their positions but it always stops
part way through creating the 3rd dropdown.

I tried an alternative method by doing away with the variables and
constructing the dropdowns with a ''while'' statement reading through
the results of my SQL and got exactly the same problem only 2 and a
bit dropdowns.

Stopping it running after a few seconds or several minutes makes no
difference, it seems to reach a certain point and just stop - no error
messages or anything!

I have tried increasing the resourses in my php.ini file but this also
made no difference.

Can anyone suggest an alternative or a fix?

Thanks

.................................................. ........................................
Can you paste same code ?


On 17 Jun, 09:31, Georgi Naumov <gonau...@gmail.comwrote:

Shutey :

I have a strange issue with dropdowns. Using php4, mySQL5, Apache 2 on
a fast XP pro PC, I have a form which requires 5 dropdowns populated
with indentical values. I extract the values using SQL and populate 2
variables and use a for-next loop to create the dropdown. The dropdown
contains some 310 items! It works beautifully if I have 1 or 2
dropdowns but as soon as I add more it partially creates the 3rd and
just stops until it times out!
All 5 work because I have altered their positions but it always stops
part way through creating the 3rd dropdown.

I tried an alternative method by doing away with the variables and
constructing the dropdowns with a ''while'' statement reading through
the results of my SQL and got exactly the same problem only 2 and a
bit dropdowns.

Stopping it running after a few seconds or several minutes makes no
difference, it seems to reach a certain point and just stop - no error
messages or anything!

I have tried increasing the resourses in my php.ini file but this also
made no difference.

Can anyone suggest an alternative or a fix?

Thanks


.................................................. ..........................*..............
Can you paste same code ?- Hide quoted text -

- Show quoted text -

Here''s the code I am currently using, there are 4 more identical
''name=option2, 3, 4 and 5'' but otherwise the same.


qry = ''SELECT field1, field2 '';


这篇关于最大下拉大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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