文本字段比较 [英] Comparison on text fields

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

问题描述


有人可以告诉我如何编写基于大学等级或等级来比较大学名称的代码.基本上我有两个文本字段,用户可以在其中输入大学名称,当他单击提交"按钮时,两个大学将根据从下拉框中选择的等级或等级进行比较,比较应该基于从下拉列表中选择的字段框..所有数据都将来自数据库.所以有人可以帮我吗...

谢谢,
Bharat Joshi


can anybody tell me how can i write the code which compare the college names based on their ratings or based on grade. Basically i have two text fields where user can enter college names and when he hit the submit button two college''s will compare based on their ratings or grade which are selected from drop down box, comparison should be base on field selected from drop down box.. all the data will come from database.so can anybody help me out...

Thanks,
Bharat Joshi

推荐答案

如果您在数据库中拥有等级和等级,那么您将编写SQL来做到这一点,具体取决于您的比较意思.或者,也许您只是想从数据库中获取所有数据并显示给用户,以便他们可以进行比较?您的问题听起来很琐碎,也不清楚细节.
If you have the ratings and grades in your database, then you will write SQL to do that, depending on what you mean by compare. Or, perhaps you just want to get all the data from the DB and show the user, so they can compare ? Your question sounds like what you want is trivial as well as being unclear in the details.


这篇关于文本字段比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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