Re: [PHP] Search function not working...

2008-02-01 Thread Jim Lucas
Jason Pruim wrote: So I said in another thread that I would be asking another question about functions... So here it goes, I am attempting to write a function to search the database, which used to work just fine when I wrote it without using a function (Would that be considered static?) Now tha

Re: [PHP] Search function not working...

2008-02-01 Thread David Giragosian
> > Jason, > > Untested, but try this... > > function search($searchvar, $table, $num_rows, $FName, $LName, $Add1, > $Add2) { >$qstring = "SELECT * FROM ".$table." WHERE FName like > '%$searchvar%' > or LName like '%$searchvar%' or Add1 like > '%$searchvar%' or Add2

Re: [PHP] Search function not working...

2008-02-01 Thread David Giragosian
On 2/1/08, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Feb 1, 2008, at 2:20 PM, David Giragosian wrote: > > On 2/1/08, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > [snip long explanation of problem] > > > function search($searchvar, $table, $num_rows, $FName, $LName, $Add1, > $Add2) { >

Re: [PHP] Search function not working...

2008-02-01 Thread Jason Pruim
On Feb 1, 2008, at 2:20 PM, David Giragosian wrote: On 2/1/08, Jason Pruim <[EMAIL PROTECTED]> wrote: [snip long explanation of problem] function search($searchvar, $table, $num_rows, $FName, $LName, $Add1, $Add2) { $qstring = "SELECT * FROM ".$table." WHERE FName like '% $searchvar

Re: [PHP] Search function not working...

2008-02-01 Thread David Giragosian
On 2/1/08, Jason Pruim <[EMAIL PROTECTED]> wrote: > > So I said in another thread that I would be asking another question > about functions... So here it goes, I am attempting to write a > function to search the database, which used to work just fine when I > wrote it without using a function (Woul

[PHP] Search function not working...

2008-02-01 Thread Jason Pruim
So I said in another thread that I would be asking another question about functions... So here it goes, I am attempting to write a function to search the database, which used to work just fine when I wrote it without using a function (Would that be considered static?) Now that I am attempti