[PHP] Re: Searching on AlphaNumeric Content Only

2009-09-04 Thread Lupus Michaelis
sono...@fannullone.us a écrit : Here's an example: let's say there is an itemID of 4D-2448-7PS but someone omits the dashes and searches on 4D24487PS. Is it possible in PHP to have the find be successful, even if the search criteria doesn't exactly match what's stored in the field? I

Re: [PHP] Re: searching by tags....

2008-10-20 Thread Andrew Ballard
On Sun, Oct 19, 2008 at 10:34 AM, Martin Zvarík <[EMAIL PROTECTED]> wrote: > Ryan S napsal(a): >> >> Hey, >> >> this the first time I am actually working with "tags" but it seems quite >> popular and am adding it on a clients requests. >> >> By tags I mean something like wordpress' implementation o

Re: [PHP] Re: searching by tags....

2008-10-19 Thread Ashley Sheridan
On Sun, 2008-10-19 at 16:34 +0200, Martin Zvarík wrote: > Ryan S napsal(a): > > Hey, > > > > this the first time I am actually working with "tags" but it seems quite > > popular and am adding it on a clients requests. > > > > By tags I mean something like wordpress' implementation of it, for exa

[PHP] Re: searching by tags....

2008-10-19 Thread Martin Zvarík
Ryan S napsal(a): Hey, this the first time I am actually working with "tags" but it seems quite popular and am adding it on a clients requests. By tags I mean something like wordpress' implementation of it, for example when an author writes an article on babies the tags might be baby,babies,

[PHP] Re: searching by tags....

2008-10-14 Thread Nathan Rixham
Ryan S wrote: Hey, this the first time I am actually working with "tags" but it seems quite popular and am adding it on a clients requests. By tags I mean something like wordpress' implementation of it, for example when an author writes an article on babies the tags might be baby,babies, new

[PHP] Re: Searching My Database

2004-09-29 Thread Daniel Kullik
Harlequin wrote: Morning everyone. I've read around the subject of searching and although using the FULLTEXT capability of MySQL might be the proper way of doing this I feel it's somewhat limited and have decided to use a simple select procedure. I'm sure there's a better way of doing this, as I

Re: [PHP] Re: Searching and removing

2004-07-29 Thread Matt M.
> I would rather not put it into a file as it will be changing in real time > dynamically so it would put some strain on the filesystem. All I really want to > do now is just stick it into a string variable. How could I do that? you could just use http://us2.php.net/file_get_contents -- PHP Gen

Re: [PHP] Re: Searching and removing

2004-07-29 Thread Justin Patrin
On Thu, 29 Jul 2004 17:25:10 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > On Fri, 30 Jul 2004 00:06:33 + (UTC), Jonathan Lassoff > <[EMAIL PROTECTED]> wrote: > > Justin Patrin gmail.com> writes: > > > You could "fix" this script by actually giving it a file to output to > > > and reading

Re: [PHP] Re: Searching and removing

2004-07-29 Thread Justin Patrin
On Fri, 30 Jul 2004 00:06:33 + (UTC), Jonathan Lassoff <[EMAIL PROTECTED]> wrote: > Justin Patrin gmail.com> writes: > > You could "fix" this script by actually giving it a file to output to > > and reading it or by using output buffering to grab the output into a > > string. > > > > Or you co

[PHP] Re: Searching and removing

2004-07-29 Thread Jonathan Lassoff
Justin Patrin gmail.com> writes: > You could "fix" this script by actually giving it a file to output to > and reading it or by using output buffering to grab the output into a > string. > > Or you could use some code which gives you a better interface for all > of this, such as: > http://pear.ph

Re: [PHP] Re: Searching and removing

2004-07-29 Thread Justin Patrin
On Thu, 29 Jul 2004 23:25:41 + (UTC), Jonathan Lassoff <[EMAIL PROTECTED]> wrote: > Justin Patrin gmail.com> writes: > > Assuming there's only one table in the document > > > > preg_match('!]*>.*!i', $text, $matches); > > $table = $matches[0]; > > Thanks! I thought that I was putting it i

[PHP] Re: Searching and removing

2004-07-29 Thread Jonathan Lassoff
Justin Patrin gmail.com> writes: > Assuming there's only one table in the document > > preg_match('!]*>.*!i', $text, $matches); > $table = $matches[0]; Thanks! I thought that I was putting it into a variable, but poking around with the script, it actually is just pooping out all the fetched

[PHP] Re: searching through 2 text files

2004-07-22 Thread Torsten Roehr
"Alantodd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have 2 text files > > > > One has arp list > > > > IP Address MAC Address Type > > -- -- > > 165.166.182.204 00:0a:04:98:b5:d3

[PHP] Re: Searching a file

2004-05-22 Thread Torsten Roehr
"Ian Barnes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > [code] > $file=file("/ian/testing.file"); file://Load the file into array > unset($file[0]); file://Remove the first #gc line > foreach($file as $line){ // Run through each array line > $array[]=exp

[PHP] Re: Searching a file

2004-05-22 Thread Torsten Roehr
"Ian Barnes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > [code] > $file=file("/ian/testing.file"); file://Load the file into array > unset($file[0]); file://Remove the first #gc line > foreach($file as $line){ // Run through each array line > $array[]=ex

[PHP] Re: searching date

2003-08-14 Thread Kae Verens
[EMAIL PROTECTED] wrote: Hi , The user have to choose 2 date ($date_begin & $date_last) and i want to know howcan i make to find field in mysql where field included between ($date_begin & $date_last) "SELECT * FROM `news` WHERE `date` included in ($date_begin & $date_last)" $q=mysq

[PHP] Re: Searching a db

2002-09-23 Thread Joseph Szobody
Joshua, I learned a ton by reading this tutorial. See if it helps... http://www.zend.com/zend/tut/tutorial-Ferrara.php Joseph "Joshua E Minnie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey all, > I am looking for a way to search a MySQL DB based

[PHP] Re: searching an array for words starting with 'p'

2002-07-30 Thread Evgeny Chuykov
See preg_grep() function in the manual. a> Hi there, a> I am wondering how to search an array for words starting with a certain a> character. a> E.G: a> $word = array('alpha', 'beta', 'php'); a> I would like to check if there is a word in the array starting with p a> Is there alrready a func

Re: [PHP] Re: Searching...

2002-07-19 Thread David Robley
In article <[EMAIL PROTECTED]>, php- [EMAIL PROTECTED] says... > On Friday 19 July 2002 14:08, David Robley wrote: > > > You might consider running the first query just to get a COUNT(), rather > > than extracting all the resulting rows and using mysql_numrows to > > determine how many were retur

Re: [PHP] Re: Searching...

2002-07-19 Thread Jason Wong
On Friday 19 July 2002 14:08, David Robley wrote: > You might consider running the first query just to get a COUNT(), rather > than extracting all the resulting rows and using mysql_numrows to > determine how many were returned Am I missing something? If you do a COUNT() in the query then, in ge

[PHP] Re: Searching...

2002-07-18 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > in ym search page, i construct a sql query from user input to search my > database, and i run this query to get totalresults. Then run another query > with a LIMIT 0, 30 ending for each page. So I'm running 2 mySQL queries per > page. My

Re: [PHP] Re: Searching a Paradox Table with my PHP Script..

2002-07-11 Thread Chris Hewitt
Kondwani Spike Mkandawire wrote: >Would it be that it takes time to connect to a table if >it is in use? > I don't know Paradox. Does it use row or table level locking. If table locking then if anyone is doing an update then the whole table is locked until the update is complete. If row locking

[PHP] Re: Searching a Paradox Table with my PHP Script..

2002-07-11 Thread Kondwani Spike Mkandawire
Would it be that it takes time to connect to a table if it is in use? "Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hallo folks: (Sorry for a repost on the same topic just > that my first one never got through)... > > I have a bit

[PHP] Re: Searching for string in text file help?

2002-07-02 Thread Richard Lynch
>I'm trying to seach for a string that would occur about 10 lines into a text >file. I don't want to search the entire file, and I just want to know if the >string exsists or not, but I don't really know what I'm doing. This is what >I was trying, it occurs inside a loop that is listing the files

[PHP] Re: Searching for any number in a mysql query

2002-05-21 Thread liljim
Hi, try something like this: "select [fields] from [table(s)] where [fieldtosearch] regexp "^([1-9]{1}|10)"; ~James <[EMAIL PROTECTED]> wrote in message 003901c200b2$27ccff40$0100a8c0@JohnH">news:003901c200b2$27ccff40$0100a8c0@JohnH... This isn't a one hundred percent PHP Q but here I go. If

[PHP] Re: searching terms non adjacent

2002-04-25 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > What's the best programming method to use to search terms that are non > adjacent? What exactly do you mean? Are you looking at a SQL query, or... -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (ht

[PHP] Re: Searching for a new provider

2001-12-12 Thread Mike Eheler
What's a speicherplatz? Mike Andy wrote: > Hi there, I am searching for a provider who fullfills those criterias and > does not cost a fortune: > > >>- PHP >= 4.06 bzw. PHP 4.x mit GDLibrary ab 2.0 >> > >>- GDLibrary >= 2.0 >> > > > - PHP installed as module > > >>- mind 5 Subdomains >>

[PHP] Re: Searching for a word in a string

2001-10-19 Thread Chris Lee
php.net/strstr if ( strstr($string, $search) ) echo "TRUE"; else echo "FALSE"; -- Chris Lee [EMAIL PROTECTED] "Brandon" <[EMAIL PROTECTED]> wrote in message 001e01c158b3$91579170$5a52a040@wi">news:001e01c158b3$91579170$5a52a040@wi... > Hello, > > How can I search for a certain wo

[PHP] Re: searching trought multiple tables

2001-09-21 Thread Richard Lynch
Either you are missing a constraint (one of the *AND* bits in a WHERE clause) or you actually have duplicates in the join. Can't tell which without knowing more about the schema. You could just use "select DISTINCT ..." and let MySQL get rid of the duplicates. That may be kinda slow on 5,000 ro

[PHP] Re: Searching help

2001-09-05 Thread Daniel Masur
$Query = "SELECT * FROM enet WHERE TechContact LIKE '%$Avar1%' AND AdminContact LIKE '%$Avar2%'"; try this. Avar1/2 needs to be replaced by your var that u use in your html form "Devon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $Query = "SELECT *

Re: [PHP] Re: "searching" arrays

2001-08-15 Thread David Robley
On Wed, 15 Aug 2001 16:17, Raphael Pirker wrote: > Hi Richard, > > Thanks a lot for your prompt reply!! I get a parse-error, however, on > line 77 (marked below): > > function search_the_array($array) { > global $search_tmp; > $result = array_search($search_tmp, $array,

[PHP] Re: "searching" arrays

2001-08-14 Thread Raphael Pirker
Hi Richard, Thanks a lot for your prompt reply!! I get a parse-error, however, on line 77 (marked below): function search_the_array($array) { global $search_tmp; $result = array_search($search_tmp, $array, TRUE); reset($array); Line77:while (!($resu

[PHP] Re: "searching" arrays

2001-08-14 Thread Richard Lynch
> is there also a way to search for, let's say '*china*' because in my array > it would say "Republic of China" and when searching for "china" I get no > result from the array... You'd have to walk through the array and use strstr or ereg for that. You could maybe use PHP's array_walk function,

[PHP] Re: "searching" arrays

2001-08-14 Thread Raphael Pirker
is there also a way to search for, let's say '*china*' because in my array it would say "Republic of China" and when searching for "china" I get no result from the array... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

[PHP] Re: "searching" arrays

2001-08-14 Thread Raphael Pirker
hehe, oops! :) thanks by the way,it worked! :)) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: "searching" arrays

2001-08-14 Thread Inércia Sensorial
in_array(); -- Julio Nobrega. 2B||!BB - That's the question. "Raphael Pirker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Is there a possibility to search arrays in PHP? For example I'd like to find > out the index-number of > > $countries["si

[PHP] Re: "searching" arrays

2001-08-14 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Raphael Pirker) wrote: > Is there a possibility to search arrays in PHP? Yes, and you'll never guess what it's called! (Hint: see ). -- CC -- PHP General Mailing List (http://www.php.net

[PHP] RE: Searching for array keys

2001-05-04 Thread Tim Ward
if (isset($array["key"])) Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Martin Skjöldebrand [mailto:[EMAIL PROTECTED]] > Sent: 04 May

[PHP] Re: Searching a MySQL database?

2001-01-14 Thread Kristofer Widholm
>I remember seeing someone post something like this: > >$sql = " SELECT * FROM table_name > WHERE towns LIKE \"$town\" "; > >so if the search word is not EXACTLY like a row in the database, it may >return results to partial words. I think you mean $sql = "SELECT * FROM table_name WHERE to