Re: [PHP] Non-Object errors (RESOLVED)

2009-04-28 Thread Miller, Terion
Thanks folks!! On 4/28/09 12:30 PM, "Miller, Terion" wrote: On 4/28/09 12:27 PM, "Lex Braun" wrote: Terion, On Tue, Apr 28, 2009 at 1:14 PM, Miller, Terion wrote: Here is my code now: $query = "select name, age, warrant, bond, wnumber, crime FROM warrants where ".$warranttype." = ".

Re: [PHP] Non-Object errors

2009-04-28 Thread Miller, Terion
On 4/28/09 12:27 PM, "Lex Braun" wrote: Terion, On Tue, Apr 28, 2009 at 1:14 PM, Miller, Terion wrote: Here is my code now: $query = "select name, age, warrant, bond, wnumber, crime FROM warrants where ".$warranttype." = ".$warranttype." OR ".$searchname." = ".$searchname." ";$resu

Re: [PHP] Non-Object errors

2009-04-28 Thread Lex Braun
Terion, On Tue, Apr 28, 2009 at 1:14 PM, Miller, Terion < tmil...@springfi.gannett.com> wrote: > Here is my code now: > $query = "select name, age, warrant, bond, wnumber, crime FROM warrants > where ".$warranttype." = ".$warranttype." OR ".$searchname." = > ".$searchname." ";$result = mysq

Re: [PHP] Non-Object errors

2009-04-28 Thread Miller, Terion
On 4/28/09 11:23 AM, "Jan G.B." wrote: 2009/4/28 Miller, Terion : > Can someone help with how to make this work, trying to get the number of > rows but am getting the "trying to get property of non-object" > > Code- > > $query = "select blah, blah, blah from table where ".$type

Re: [PHP] Non-Object errors

2009-04-28 Thread Jan G.B.
2009/4/28 Miller, Terion : > Can someone help with how to make this work, trying to get the number of > rows but am getting the "trying to get property of non-object" > > Code- > > $query = "select blah, blah, blah from table where ".$type." like > '%".$name."%'"; > > $result = mysq

[PHP] Non-Object errors

2009-04-28 Thread Miller, Terion
Can someone help with how to make this work, trying to get the number of rows but am getting the "trying to get property of non-object" Code- $query = "select blah, blah, blah from table where ".$type." like '%".$name."%'"; $result = mysql_query($query); $num_results = $resu