473,396 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to make selection?

150 100+
when i make search into this nice site i see it selecting what i was searching for into the result page how can i do that by php ?
Sep 1 '07 #1
2 1200
mwasif
802 Expert 512MB
You can change <b> and </b> with any other tags according to your requirement.
[PHP]$content = "this is an article content";
echo preg_replace("/(an|content)/i", "<b>\\0</b>", $content);[/PHP]
Sep 1 '07 #2
pbmods
5,821 Expert 4TB
Heya, Smartic.

I would guess (though I couldn't readily prove) that TheScripts uses URL rewriting to make URLs more readable.

For example:
http://www.thescripts.com/forum/thre...dent+drop.html

Probably gets turned into something like:
http://www.thescripts.com/forum.php?thread=701404&search[]=dependent&search[]=drop

Then, it's a simple matter of running through $_GET['search'] and modifying the post text as Mwasif explained.
Sep 2 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: dapernia | last post by:
Hi friends, I want to make menu in my C program For example: Main Menu: (1) Enter Data, (2) Control Variables (3) Exit I want to make this menu to go through the options just pressing...
2
by: David | last post by:
Does anybody know how to check the AllowSelection radio button in the PrintDialog Dialog? I want to set this to checked if the user has selected a subset of text.
4
by: Christina | last post by:
Hello everyone, Am having trouble solving a problem of DropDownList. I have 2 dropdownlists say 'ddlA' and 'ddlB', and a text box. Based on the selection in ddlA, I have to display some data...
5
by: STeve | last post by:
Hey guys, I currently have a 100 page word document filled with various "articles". These articles are delimited by the Style of the text (IE. Heading 1 for the various titles) These articles...
4
by: Laphan | last post by:
Hi The god that is Martin Honnen gave me a great tip to DOM/JS some HTML data into an iframe, but I need to make sure that the iframe is ready to take it before I paste it in. At the moment,...
3
by: peter.mosley | last post by:
I've tried googling for the answer to this problem, without any luck. I'm sure the truth must be out there somewhere! I have a multiselect listbox populated with many items (set by the RowSource...
6
by: CAH | last post by:
I need to make at multilingual website, with php and mysql, and I have placed the different language in different columns in a database. But when the user chooses a language, should I make the...
1
by: sjarmy | last post by:
I am using javascript to make a dropdownlist act like a combobox and it is work well. The issue I'm having is when the user types in the combobox and finds the selection he wants, he has to use the...
1
by: rockchicx23 | last post by:
i have to develop this snack machine program that makes you chose a snack put money in and give change here is my code so far, what do i use so the program compare the price and money deposited, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.