如何在搜索引擎中显示高端用户产品? [英] How to display the premium users product in top in search engine?

查看:83
本文介绍了如何在搜索引擎中显示高端用户产品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部好,

我创建了一个用户可以上传广告的网站。我添加了搜索表单,每个人都可以从我的网站搜索产品​​。但我想显示我的付费用户任何人使用我的网站搜索表单时,数据都在顶部。我正在处理它。我需要你的建议和帮助。请帮助我。

谢谢大家,

HI ALL,
I have made a website in which user can upload their advertisement.I have added search form in which everyone can search products from my website.But i want to display my paid user data in top whenever any person use search form of my website.I am working on it.I need your suggestion and help.Please help me.
Thanks all,

推荐答案

因此,您要么进行两次搜索:一次通过高级广告,一次通过非高级广告并按顺序显示,或者您进行一次搜索,但添加按订单标准首先是优质的。



我们不能具体,因为我们不知道您如何存储,访问或显示您的任何信息!

但是,如果它是SQL,那么类似于:

So, you either do two searches: one through Premium ads, and one through non-premium ads and display them in that order, or you do one search but add a "order by" criteria which puts premium ones first.

We can't be specific as we have no idea how you are storing, accessing or displaying any of your information!
But, if it's SQL, then something along the lines of:
SELECT * FROM MyAds WHERE searchText LIKE '%I want this%' ORDER BY premiumRate, searchText

应该有所帮助。


这篇关于如何在搜索引擎中显示高端用户产品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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