[thelist] form field search query

Andrew Maynes andrew at humanbehaviour.co.uk
Tue Nov 5 05:44:10 CST 2002


it's always the simple ones that do it!

I really want to take the code out that duplicates the search but have a problem
with where its goes or should not go.  It's ok putting something in that stops
something else for working but it is still there!

this is the code that is necessary, but produces the erro below
// *********** START FUNCTION get_cat_options() *************

function get_cat_options(){

  $query = 'SELECT cat_name, cat_id
           FROM std_categories
           WHERE parent_id=0 ORDER BY cat_name ASC ';

  $result = mysql_query($query);

  while($row = mysql_fetch_array($result) )
   { echo '<OPTION VALUE="'.$row['cat_id'].'">';
     echo $row['cat_name'] ;
     echo "</OPTION>" ;
   }

} // end function get_cat_options()

// *********** END FUNCTION get_cat_options() *************



Fatal error: Call to undefined function: search_by_keyword_form() in
/home/j/u/jungfreud/public_html/classad/lib/func_index.php(53) : eval()'d code
on line 1

Andrew

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Madhu Menon
Sent: Tuesday, November 05, 2002 11:43
To: thelist at lists.evolt.org
Subject: Re: [thelist] form field


At 05:08 PM 05-11-02, Andrew Maynes wrote:
>I have a form fieled
>
>KEYWORDS <INPUT TYPE="TEXT" NAME="search" SIZE="30">
>
>and want it to contain
>
>.......type your words here
>
>[...]

>Is it value=".......type your words here"


Yep. :)

Madhu

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.410 / Virus Database: 231 - Release Date: 31/10/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.410 / Virus Database: 231 - Release Date: 31/10/2002




More information about the thelist mailing list