Wow thank you so much for helping me with this information. thanks for being so detailed in your response. I will check out the UNIX and web server forums to hopefully come up with a solution to my situation.
Hi. I am new to CGI and am just starting out trying a few things. I am a PHP/MySQL developer and am comfortable writing XHTML, XML, CSS, JavaScript, and ASP.NET VB. I know pretty much nothing of CGI and would like to learn a bit more. Here are a couple of questions I have to start out with:
In...
Ok. I was doing something wrong (as usual). Let me know if you ever try to get the pre_match version working. honestly, though, I wouldn't worry about it, this way works fine. Thanks again.
ok, one last question about this topic. Would a comma (,) cause this to fail for some reason? I've tried searching for lastname, firstname and get weird results. Does this need to be modified to allow for a comma?
ok, wow, i did try this all by itself and it seemed to work great. what am I doing wrong? maybe the needle/haystack are opposite in your function as they are mine. lemme check that.
Ok, what I ended up doing is referencing the client_id from the client_list table as a column in the client_domain table. Now I guess my question is, how do I setup a query to display:
all rows in the client_list table
all rows in the client_domain table
client_list connects to client_company...
I think the client_list table serves as a "middle man". The only column which holds multiple values is client_dom (in the client_list table). The client_list table connects to the client_company table via client_comp field. That only holds 1 value, the PK of the corresponding row in the...
I have a query where I'm trying to match 1 table's primary key to field in another table that holds multiple entries. For example, the field may have 1 value in it, and allows this to work:LEFT JOIN client_list ON client_domain.dom_id = client_list.client_dom however sometimes the field has...
yes, but in addition, all individual words. so if the needle has a space, then explode it and highlight all occurances of each individual word. But I think the entire phrase should be done first, so the words don't look broken up.
Can someone take a look at this highlight function? It works pretty good, but I'd like to know how to tweak it so that it:
1. highlights an entire phrase (it already does this)
2. highlights each individual word
3. does not mess up words inside <html> tags
function...
Ok, so I know this isn't the best way to do it, but to avoid infinite loops i'm just going to limit this to 10 items, but for some reason, I can't get it to move forward to the next item. What am I doing wrong?
function getSections($needle, $haystack){
$mid_text = array();
$lower_text =...
Ok, what I got is a working version without manipulating the original string that will find the first occurance. Now I just need to adapt it so it finds all occurances and puts each paragraph into an array so I can step through them.
function getMidText($needle, $haystack){
$mid_text =...
Removing the M didn't seem to do anything different.
I'd like to possibly look into the alternate method you described. I started working on that yesterday before I left. I will see what I can come up with.
Ok, I just noticed you changed the function a bit.
After trying the new function, when I use "bin laden" as my search phrase, it will display the entire document up to the end of the paragraph containing my search phrase. Before, it was just giving me the entire document.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.